Reply to comment

ssh not working by default

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

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Insert Google Map macro.

More information about formatting options