Answer the question
In order to leave comments, you need to log in
What am I doing wrong when I try to access a Linux machine with an ssh key?
ubuntu server 32bit 14.04
OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.6, OpenSSL 1.0.1f 6 Jan 2014
Trying with win 8.1 via putty
My steps.
ssh-keygen -t rsa
create 2 file id_rsa and id_rsa.pub
touch ~ / .ssh / the authorized_keys
cat id_rsa.pub >> the authorized_keys
contents of the authorized_keys:
the ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTsN81f / yuwu38hzId93jZ / 4KTCaIWXmt2NhviDn / CsEI6qA3viMCewsf0jklQ5ZCBrT6Rocpvk6wgGHqGjvZjWHPnponaUhBwgbSqrap / iz6Vog / P17IUXCAD7ULt78SPFvqCOc + BQfsIVL61 / CBUTRDX4z1Qy5F5jjBk2EOJgYWID34V3GVvoQ9ziAg2m8KegHtjwG0FvYvOk8Bsmpl / ij2KpnXRaVkBrIZt4NgbjGD7UvYcrqxWRQH45o+sSM49pR85PmokgZ11SbpW3RA2cBwCvAHey2ZRTT6QuKM10X19+Yi5V0S1+1JfkaQsOgEOjd/XA4JxlaOqD5+Lr5sB [email protected]_rsa
copy to Windows.
I open it in puttygen. Load, Save private key. I save the ppk file. I open putty, specify ubunt ip, port 22, deployer user. SSH->Auth->Private key file. Open.
the console writes server refuted our key. And it asks for the user's password. I dial - lets.
Permissions on authorized_keys 600
Answer the question
In order to leave comments, you need to log in
If you do it through pageant, then the console does not even write that the key is rejected, but immediately prompts you to enter the user's password
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question