I've see this post but couldn't exactly follow it. (
https://superuser.com/questions/8077/how-do-i-set-up-ssh-so-i-dont-have-to-type-my-password )
I want to access from machine A(local) to machine B (remote).
What I did was :
- I copied the .ssh/rsd_isa.pub of machine A to machine B's .ssh/authorized_keys file.
- I checked the write permission is off in machine B's .ssh/authorized_keys file.
I tried accessing machine B from machine A like this :
scp [email protected]:/home/ckim/file1 .
But it asks me the password.
The link above told me to "load the key to the ssh agent". But I couldn't understand that part. I tried this one (in machine B) :
ckim@ckim-ubuntu-22 ~/.ssh $ ssh-agent
SSH_AUTH_SOCK=/tmp/ssh-XXXXXXipqtBR/agent.1234456; export SSH_AUTH_SOCK;
SSH_AGENT_PID=123456; export SSH_AGENT_PID;
echo Agent pid 123456;
So am I supposed to execute this commands where? in machine A? (actually I tried it and also tried ssh-add command, but machine B asks me the password when I access it from machine A). How should I do it?
ssh -vvvv [email protected]
. Note the option is four "v"s. That will give us the most detailed debug log. Copy and paste the output in the question.ckim
's password or the passphrase for the key? Did you use thessh-copy-id,,,,
command to copy the public key or did you use the manual method? The manual method is more prone to create the permission problems.