osx - Can't ssh into my mac through local host or remote machine -
i've been researching days can find answer. can't ssh mac neither localhost or machine. here ssh user@localhost -vvv
output:
openssh_5.6p1, openssl 0.9.8y 5 feb 2013 debug1: reading configuration data /etc/ssh_config debug1: applying options * debug2: ssh_connect: needpriv 0 debug1: connecting 192.168.1.2 [192.168.1.2] port 22. debug1: connection established. debug3: not rsa1 key file /users/myusername/.ssh/id_rsa. debug2: key_type_from_name: unknown key type '-----begin' debug3: key_read: missing keytype debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug3: key_read: missing whitespace debug2: key_type_from_name: unknown key type '-----end' debug3: key_read: missing keytype debug1: identity file /users/myusername/.ssh/id_rsa type 1 debug1: identity file /users/myusername/.ssh/id_rsa-cert type -1 debug1: identity file /users/myusername/.ssh/id_dsa type -1 debug1: identity file /users/myusername/.ssh/id_dsa-cert type -1 ssh_exchange_identification: connection closed remote host
by looks of issue based on key being corrupt or something.
the logs firstly public key isn't rsa key despite being named so, attempts begin reading regardless see if work , fails read it. sounds corrupted key file me.
my advice delete ssh keys etc , start again, or interim measure change configuration allow password auth instead of key based.
if want remove keys, open terminal and:
rm -r /users/myusername/.ssh/id_*
to generate new ones secure passwordless login:
ssh-keygen -b 1024 -t rsa -f id_rsa -p ""
Comments
Post a Comment