I've seen this happen when the user's home directory isn't local, but on an NFS automount on the network. If your home directory isn't already mounted when sshd
goes to look for your ~/.ssh/authorized_keys
, it won't be able to access it in time, so public-key-based authentication will fail.
Ok, we work our way down:
Your ssh connection attempt output mentions this error:
debug3: Incorrect RSA1 identifier
debug3: Could not load "/Users/Andryuwka/.ssh/id_rsa" as a RSA1 public key
- Does this file exist?
- Can this identity be used to login to other hosts (= is not corrupted)
- If you move this identity, and generate a new one with ssh-keygen, do you still get the same error?
Concerning the nmap output:
Do you know about https://secwiki.org/w/FAQ_tcpwrapped : "Specifically, it means that a full TCP handshake was completed, but the remote host closed the connection without receiving any data."
==> Do you get an SSH server banner when you:
telnet iphone.local 22
? Should look something like:
# telnet localhost 22
Trying ::1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_<SomeVersionNumer>
==> Can you connect with an SSH-Client on the iphone to the SSH-Server on the iphone?
==> If not, can you confirm, the process is running on the iphone? e.g.:
ps aux | grep [s]shd
You should get a line such as:
root 749 0.0 0.0 55164 5428 ? Ss Aug09 0:00 /usr/sbin/sshd -D
If not, there is your problem: There is no sshd running
Best Answer
You just need
eg.
-p is not a recognized option for hg pull. Note your path syntax above is also wrong
is not correct syntax.