Drupal Association Individual MemberZend Certified Engineer Details

Auf Kommentar antworten

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

Antworten

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.
  • Insert Google Map macro.

Weitere Informationen über Formatierungsoptionen