Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ssh]

A network protocol that allows data to be exchanged using a secure channel between two networked devices

0
votes
1answer
17 views

Remote SSH connection

I want to connect my iMac remotely via ssh. Even though I can connect it locally, I can't do it remotely. When I try to connect remotely it refuses the connection. port 22: Connection refused I ...
1
vote
1answer
17 views

Terminal - lose useful keyboard shortcuts during SSH connection

I'm encountering an annoying issue. When I'm connecting to a Linux VM through my terminal by ssh, I don't have tab completion, or I can't navigate through my past commands with the directional arrows. ...
1
vote
0answers
22 views

How can I enable graphics on local macOS from remote Linux using SSH?

host: Ubuntu 64-bit local: macOS 10.13 64-bit I'm attempting to run a program on a remote Linux machine through ssh, and I want the GUI to appear on my local macOS laptop. When I execute ssh -v -X ...
0
votes
0answers
10 views

Fail2ban ssh rules do not apply when using ssh user@devicename.local?

I have fail2ban set up and working correctly for ssh on my Linux server, it acts the way I want it to if I exceed maxretry when I am logging in as ssh user@ipaddress however if I use ssh user@...
0
votes
1answer
28 views

How do I setup ssh so I can ssh back into my local machine

I need to be able to ssh back to my localhost, samwise.local in my case, but ssh on Mojave will only let me do this if I authorise by password and I need passwordless login. I've set ssh keys via ssh-...
0
votes
1answer
21 views

Can I set up Boot Camp in a headless mac pro?

I have this headless Mac Pro in the living room. I access it from my MBP through the network, ssh and sometimes with a remote desktop solution. I use it to run data/computing. Now I need to get ...
2
votes
1answer
19 views

3 locations for SSHd configuration

So I want to harden my SSH daemon when Remote Login is enabled. So far I've found: /private/etc/ssh/sshd_config /System/Library/LaunchDaemons/ssh.plist -> protected by SIP /etc/ssh/sshd_config Why ...
1
vote
0answers
22 views

How do I keep my SSH private key passphrase away from OSX?

I recently created an SSH public/private keypair on my Mac OSX Yosemite system and for this use-case, I wanted to encrypt the private key with a passphrase. However, the first time I attempted to use ...
1
vote
1answer
55 views

Connecting from iOS to macOS using ssh

Because of the OpenSSH iOS tweak and NewTerm (my phone is jailbroken), I'm able to connect from my computer to my phone using ssh: $ ssh mobile@myphonesip mobile@myphonesip's password: myphonesname~ ...
1
vote
1answer
97 views

How to get to .ssh path on macOS?

I have tried the following steps from How to access my .ssh folder for Transmit or Cyberduck?: In the find file window, press Command-Shift-G. It'll ask you what folder to navigate to. Enter "~/....
1
vote
1answer
36 views

Storing SSH passphrase in memory but not saving it to the keychain persistently

Answers to this question explain how to have SSH passphrases added to the keychain when they are entered. Having recently upgraded from a previous version of OSX, I'm used to the passphrases being ...
1
vote
0answers
98 views

Mojave: Generate SSH key with old private key format

After I fresh installed Mojave, when I generate a new SSH key it uses the new OpenSSH protocol 2 format private key. The ID_RSA file starts with "BEGIN OPENSSH PRIVATE KEY", even if I run ssh-keygen -...
2
votes
2answers
76 views

Multiple machine ssh client application for macOS

In Windows there are applications such as mobaexterm that allow the user to control multiple remote ssh clients conveniently. For example, in order to run the same command on multiple machine, or save ...
1
vote
0answers
30 views

SSH authentication with USB token

I’ve been given a SafeNet USB token for authenticating via AD to remote servers. How can I pass my token credentials through Terminal to SSH into remote servers?
4
votes
1answer
166 views

After running `ssh-add -K` to add my SSH key to the Apple Keychain, what is the name and type of entry shown in Keychain Access.app?

Supposedly this console command will add my private SSH key to the Apple Keychain, as discussed in this Answer on the Question, How to use Mac OS X Keychain with SSH keys?: ssh-add -K path-to-my-...
2
votes
1answer
65 views

Allow user to SSH to my Mac, but sandbox the account

I would like to create an SSH account on my Mac to allow some friends to test code on my machine from the command line. However, I want to sandbox them, so that the only folders/files they can see ...
5
votes
2answers
134 views

Restrict ssh access to selected IP on macOS

I want to restrict ssh access on macOS 10.12 to selected IPs on my local network. I tried writing the following files: # /etc/hosts.allow sshd: 192.168.1.32 sshd: 192.168.1.33 # /etc/hosts.deny sshd:...
1
vote
1answer
56 views

How can I edit the /etc/ssh/ssh_config file?

I tried editing the /etc/ssh/ssh_config file on my Mac to change the forwardX11 from no to yes, and this to enable X11 features. I try to change permission in the file ssh_config and in the folder ...
0
votes
1answer
270 views

ssh from my mac hangs after authenticating anywhere, regardless of app. It's definitely the mac. Ideas?

I have a MacBook Pro running Mojave 10.14.1. When I try to ssh anywhere, after entering my password, the ssh session hangs immediately after authentication. Regardless of ssh app! And I'm baffled. ...
1
vote
1answer
73 views

How can I reduce timeout for ssh when network is down?

I'm using macbook and annoyed by ssh timeout everyday. When my internet connection is down(by moving to conference room) or most of the times that macbook goes to sleep mode, ssh connections show ...
2
votes
1answer
27 views

Transferring WinSCP configuration to macOS

I have been using Windows for a couple of decades, and just got a MacBook Pro. Under Windows, I was using WinSCP, with PuTTY. I just installed CyberDuck, and I know I should be able to use the built-...
1
vote
1answer
73 views

Newly-created SSH keys landed in my home folder rather than `.ssh` folder after creating with `ssh-keygen`

I used the ssh-keygen utility bundled with High Sierra to create keys, as directed by this page title How to Create SSH Keys with OpenSSH on Linux or macOS at DigitalOcean.com. Oddly, the prompt to ...
1
vote
1answer
35 views

Disable ECDSA SSH Host keys

I would like to disable ECDSA SSH host keys. I deleted the existing keys: $ sudo rm -f /etc/ssh/ssh_host_ecdsa_key* I uncomment ECDSA in /etc/ssh/sshd_config $ grep -i ecdsa /etc/ssh/sshd_config #...
2
votes
0answers
182 views

Killed: 9 error while running ssh on Mojave

I am trying to connect via ssh to the remote GitHub server using Mac OS Mojave. I generated the Key pair and when I execute the following command in bash: ssh -T git@github.com I get this error: ...
7
votes
4answers
2k views

Adding SSH private key gives error that 0644 permissions are too open

I have a generated a ssh private key .key. I want to add it into my ssh in Mac to connect to a remote server, I have only known_hosts file in ~/.ssh directory. When I try to add it using this command:...
0
votes
2answers
20 views

How can I keep a folder on a remote server in sync with a local folder in iOS accessible via Files?

I prefer not sideloading apps onto my devices, so solutions leveraging existing products are preferred. I tried using Nextcloud, but I don’t know how to accomplish my goal of a synced folder with it, ...
1
vote
1answer
100 views

Make sourced .bash_profile works immediately in current window [closed]

I use a macOS to connect to an Ubuntu server, after defining new .bash_profile (like upgrading node.js or making new alias), I will have to exit the ssh and login again after sourcing the ....
3
votes
0answers
322 views

Keep alive SSH connection with server in MacOs Mojave

In El Captain, to maintain active a SSH connection you should edit ~/.ssh/config file to add your additional rules. nano ~/.ssh/config To maintain active for 1 hour you should add: Host * ...
1
vote
1answer
38 views

Don't get password prompt when ssh-ing from fedora

I can ssh successfully with password from one mac running Yosemite to another, but when I try to use password authentication for ssh from fedora to either Yosemite system, I never get a password ...
1
vote
0answers
28 views

How to import self-signed certificate over SSH? (bounty)

I'm trying to remotely (SSH) import a custom certificate into Firefox and/or Chrome. It looks a similar question has been asked before, but didn't get an answer. I put a 150 point bounty on it in ...
1
vote
1answer
40 views

.putty/randomseed in home folder

I have recently found out that there is a hidden folder in my Home Directory named putty with a file named "randomseed" inside. I know PuTTY on Unix stores its data there, and I have read around that ...
0
votes
0answers
101 views

Unable to write to the folder via smb connection, although writing privileges granted QNAP

I have a QNAP server. I can only SSH there as admin. I have a directory tree: parent/child/. For the parent folder I have the following ls -l permissions: admin@qnap: drwxr-xr-x 6 admin lab ...
2
votes
3answers
83 views

MacOS SSH connect using key

I'm trying to connect to my host using SSH key. I've generated a key pair and added public key to authorized keys to the server. However I'm unable to connect to server using my private key. Every ...
6
votes
1answer
1k views

Cannot change ssh port on High Sierra

As subject: I cannot edit the file ssh.plist which is located in /System/Library/LaunchDaemons. I want to change the sshd port. I tried to use 'information' in the finder and unlock it. This didn'...
1
vote
1answer
466 views

Endpoint has been activated through legacy launch on Mac Mini

Asking this here as I don't think it's a Linux problem. My Mac Mini sits on a desktop and is the 'central authority' for all of my backups. I have nine Linux virtual machines on a server on which ...
3
votes
1answer
694 views

How to stop ssh-agent from being started on login/boot

I noticed ssh-agent is started automatically upon login. I'd rather it not do this, as I'd prefer oh-my-zsh to start the ssh-agent instead (since it automatically adds my id_rsa which is a nice ...
0
votes
0answers
17 views

alternatives to keychain for storing keys on shared/managed device

I need to work on a shared/managed apple device (same user), but need to frequently use ssh, git or gnupg. I would like to prevent my keys to be stored on the device keychain besides probably being ...
0
votes
0answers
116 views

Termius ssh-client on iPhone - and the Esc-key

With the Termius app I am able to ssh into my servers straight from the phone, no need to carry anything else (like laptops). The app can use the virtual keyboard, but, for prolonged typing, one can ...
0
votes
0answers
145 views

Using `defaults` through ssh: “Domain com.apple.dt.Xcode does not exist”

I'm trying to automate a build process, and as part of making things robust, I need to set some values with the defaults application. When I'm logged in locally using a terminal on the graphical ...
0
votes
0answers
34 views

Can you disable su for certain users logged in via ssh?

Basically, I'm running a Mac Mini as a server, and I'm trying to close some security holes. My server has 3 users: admin, git, and server. Each user has public key authentication enabled, while only ...
2
votes
0answers
49 views

SSH Port for Outgoing Connections Defaults to 91

Whilst working with SSH on a 2016 MBP running macOS High Sierra, I have noticed that, by default, it tries to connect to hosts using port 91. As an example, if I do a test connection to GitLab, I get ...
1
vote
1answer
78 views

*Persistently* disable password authentication in SSHD

I want to be able to SSH in to my mac. I do not want to be able to use passwords to authenticate. I know how to configure this, what to put in /etc/ssh/sshd_config. But every time I install even a ...
2
votes
0answers
35 views

How to reset SSHD config to vanilla / system default settings on 10.13?

I'm having some really strange issues where workstations can no longer perform password-less (key based) ssh login to one particular workstation on macOS 10.13 now. All other workstations can use ...
1
vote
1answer
33 views

Network client is released unexpectedly and mac goes to sleep

My jenkins builds crash because of broken ssh pipes into my iMac. The ssh connection is dropped unexpectedly and the iMac instantly enters sleep state. I cant figure out why. Here's the pmset -g ...
5
votes
0answers
73 views

iOS Cannot SIGINT or Ctrl+C when SSH'ed into it

I have a jailbroken iPhone that I often SSH into. For some reason, I am unable to Ctrl+C a foreground process or kill -INT a background process when said process is started in an SSH session, but I ...
0
votes
0answers
52 views

Unable to ssh tunnel while connected to VPN

I am trying to SSH tunnel in a guest VM that will connect to a VPN and give access to the host to otherwise blocked urls. All access is correct regarding keys. Host = Connecting via the ssh tunnel (...
1
vote
1answer
36 views

I Can SSH host computer but computer does not appear in Finder's Shared Computers List?

I want to connect via Apple's ScreenSharing.app , to my home mac from a separate network. I verified that my host computer is listening on port 5900 I can SSH via unix command ssh user@router.ip ...
1
vote
0answers
130 views

Using i2cssh with highSierra

I have the latest i2cssh installed dmanna-a01:Downloads dmanna$ brew info i2cssh i2cssh: stable 1.3, HEAD https://github.com/djui/i2cssh /usr/local/Cellar/i2cssh/1.3 (5 files, 6.5KB) * Built from ...
0
votes
1answer
30 views

Running multiple git ssh logins via Terminal

I recently set up an SSH key for by Bitbucket account, which works very nicely. But I also have other git repos like Github, GitLab (non ssh at the moment) and I came to push to one of those other ...
1
vote
0answers
24 views

Mac OS X El Capitan - SSH to Amazon Linux server keeps asking for my .ppk password, but no password is set for .ppk file

I have Amazon Linux server setup. I am unable to access it via my MacBook Pro (El Capitan). It keeps asking me for the password for my .pem file. Please find attached screenshot. Below are the ...