Questions tagged [ssh]

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

917 questions
176
votes
8 answers

What can I do when my SSH session is stuck?

Sometimes my ssh session in the terminal hangs. How can I exit the ssh session and reconnect?
Kit Sunde
  • 3,089
27
votes
3 answers

openssh hangs at "rekey after 134217728 blocks"

First up, I have searched around for a full day now and although there are similar problems around, I can't find anyone having this exact problem. My hackintosh running 10.12.3 has OpenSSH installed via homebrew. It hangs at the exact same "rekey"…
ajlowndes
  • 373
13
votes
4 answers

sshd: Service exited with abnormal code: 255

Every SSH connection exits with an abnormal code. For example ssh [email protected] true results in Feb 11 10:16:47 mac-mini com.apple.xpc.launchd[1]: (com.openssh.sshd.163F2BE0-40C6-4B17-AB4E-5A0A07A524DE): Service instances do not support…
Matteo
  • 8,855
10
votes
3 answers

Turn off the SSH Agent

How do I turn the SSH Agent off? I'm having troubles with Vagrant and it indicates that I should disable my SSH Agent before continuing, yet I can't find a straight forward answer. How would I do it? Temporary answers work too. I'm happy with how my…
8
votes
2 answers

Can't find sshd process

Using PuTTY on my Windows laptop, I am able to ssh into my Mac desktop, but once I've logged in, I can't find any sshd process running on the Mac. E.g. running the following right after ssh-ing into the Mac: % ps -eo pid,command | grep sshd | grep…
kjo
  • 1,020
  • 2
  • 14
  • 21
6
votes
1 answer

Brew - sshpass security

i come from linux and i know that for automatize shh logins we can use sshpass. Looking for the sshpass command on MacOS i get this message: machine0:~ roberto$ brew search sshpass We won't add sshpass because it makes it too easy for novice SSH…
5
votes
1 answer

How to ssh into Mac on outside network when I can when on the same network

I can ssh just fine into my other Mac when both machines are on the same network using ssh -p 22 [email protected] or ssh [email protected], but when I am on a different network, I cannot ssh successfully. I am met with "ssh: connect…
5
votes
3 answers

Source .profile and .bashrc on ssh login without tty

How do I make sure ssh sources .profile and .bashrc on login without tty? I have a Mac (10.6.8) that I'm using for various UNIX-y tasks like hosting git repositories. I have remote login enabled via the System Preferences "Sharing" pane. When I…
5
votes
2 answers

SSH-Keygen Fingerprint and SSH giving fingerprints with lots of letters and numbers

At the advice of another SE member (I'm cross posting here). I've been using SSH and public key crypto for a few months. I've run into a new problem with my install of the newest public beta of OS X, and can't find an answer online. When I run…
4
votes
1 answer

SSH command has no -Z option - Obfuscated ssh client

I am working on a project remotely, and I have MACOSX 10.7.4 installed. The server is Ubuntu linux based, and I use "ssh" to access it. Recently the openSSH server in the remote server being secured by obfuscated ssh, so I have to login it with…
Tom
  • 261
4
votes
3 answers

How can I close an ssh tunnel?

I have opened an ssh tunnel with lucas-MacBook-Pro:~ donbeo$ ssh -D 8080 -f -C -q -N [email protected] How can I close it now?
Donbeo
  • 221
4
votes
0 answers

How should one correctly copy public and private keys from one mac to another?

I am aware of solution for linux here. How should one correctly copy public and private keys from one mac to another?
andilabs
  • 799
3
votes
3 answers

"Host key verification failed" despite deleting known_hosts

I know what this error means, and usually I just remove that entry from the known_hosts file and get on with it (when I know why the verification is failing). This time I still got the error after removing the specific entry for the host from…
2
votes
1 answer

Adding public key of iOS Prompt app to authorized_keys

How do I get the public key for Panic's Prompt app to setup auto-login to my Mac? I have disabled the option to login with a password over ssh as that would be a security risk. I have tried copying both the public and private key from my Mac to…
Tyilo
  • 5,527
2
votes
1 answer

ssh is no longer working from the commandline

I was trying to stop ssh from terminating after 10 minutes. I followed an instruction here saying to modify a config file and restart the service with: sudo launchctl stop com.openssh.sshd Now ssh [email protected] just hangs. I've reverted the…
P i
  • 1,745
1
2 3