0
I am trying to connect desktop(win7 x64) and note (debian wheezy x32). Made standard install of ssh cygwin and debian. Created pub-key and moved via usbflash it to ~/.ssh/authorizwd_keys
and to ~/.ssh/
In cygwin made
cd ~/.ssh
chmod 700 id_rsa
Than try to connect and have a log
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/A/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /home/A/.ssh/id_dsa
debug1: Trying private key: /home/A/.ssh/id_ecdsa
debug1: Trying private key: /home/A/.ssh/id_ed25519
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
UPD Checked files permissions, Change LogLevel to DEBUG. Than I try to connect but nothing is written in log only info abot reloading service
May 17 09:48:44 a sshd[4337]: Received SIGHUP; restarting.
May 17 09:48:44 a sshd[4386]: Set /proc/self/oom_score_adj from -1000 to -1000
May 17 09:48:44 a sshd[4386]: debug1: Bind to port 22 on 0.0.0.0.
May 17 09:48:44 a sshd[4386]: Server listening on 0.0.0.0 port 22.
May 17 09:49:43 a sshd[4386]: Received SIGHUP; restarting.
May 17 09:49:43 a sshd[4417]: Set /proc/self/oom_score_adj from -1000 to -1000
May 17 09:49:43 a sshd[4417]: debug1: Bind to port 22 on 0.0.0.0.
May 17 09:49:43 a sshd[4417]: Server listening on 0.0.0.0 port 22.
May 17 09:49:43 a sshd[4417]: debug1: Bind to port 22 on ::.
May 17 09:49:43 a sshd[4417]: Server listening on :: port 22.
May 17 09:58:23 a sshd[4417]: Received SIGHUP; restarting.
May 17 09:58:23 a sshd[4491]: Server listening on 0.0.0.0 port 22.
May 17 09:58:23 a sshd[4491]: Server listening on :: port 22.
UPD tried to connect with command "ssh -vvv" in cygwin and saw strokes
"debug3 Incorrect RSA1 identifer"
"debug3 Couldnt load "/home/A/.ssh/id_rsa" as RSA publick key"
For the future, notice that SSH has the
ssh-copy-id
program which takes care of properly adding your local public key to the list of authorized keys for your user on the target server. For it to work, another auth method has to work at the time you're using it -- such askeyboard-interactive
. – kostix – 2014-05-16T17:49:01.267Of course, I tried ssh-copy-id firstly - no result, so I did it handy. I need pnly keys, no pass interactive. – user3003873 – 2014-05-16T20:06:38.547