By hex (not verified) - Posted on October 1st, 2009
At first I was puzzled by this error:
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
Permission denied (publickey,password,keyboard-interactive).
Then I realized you need to set up public key authentication. here's how to do it:
on REMOTE machine:
make sure you have ~/.ssh directory
if you don't, run:
ssh-keygen -t rsa
it will create one with correct permissions
on LOCAL machine:
run:
ssh-keygen -t rsa
if file .ssh/authorized_keys2 exists on remote machine then append to it, otherwise do this on LOCAL machine:
scp ~/.ssh/id_rsa.pub user@remote.server.com:.ssh/authorized_keys2
that's it!
now make sure that on your LOCAL machine file .ssh/id_rsa is secure!! if anyone copies it, they can get into your remote server without passwords
At first I was puzzled by this error:
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory
Permission denied (publickey,password,keyboard-interactive).
Then I realized you need to set up public key authentication. here's how to do it:
on REMOTE machine:
make sure you have ~/.ssh directory
if you don't, run:
ssh-keygen -t rsa
it will create one with correct permissions
on LOCAL machine:
run:
ssh-keygen -t rsa
if file .ssh/authorized_keys2 exists on remote machine then append to it, otherwise do this on LOCAL machine:
scp ~/.ssh/id_rsa.pub user@remote.server.com:.ssh/authorized_keys2
that's it!
now make sure that on your LOCAL machine file .ssh/id_rsa is secure!! if anyone copies it, they can get into your remote server without passwords