Setup public/ private key authentication with ssh, scp, etc. Simple bash login one-linerBy neokrates, written on November 26, 2010 |
Bash snippet |
- neokrates
- Email: uwarov@yahoo.com
- Website: http://www.thinkplexx.com
- Join date: 05-31-09
- Posts: 20
Rate it
Ad
Poll
Loading ...
Most popular search terms:
Stats
-
Since publication, this page was visited 333 time(s).
Preconditions:
You have the public-private key pair, and use default names ~/.ssh/id_rsa.pub + ~/.ssh/id_rsa.
If your security rules allow, don’t set the passphrase. You can also remove the passphrase from already existing ssh key.
If they don’t, generate them:
ssh-keygen -t rsa
Now install the key on remote host:
cat ~/.ssh /*.pub | ssh user@remote-system 'umask 077; mkdir -p .ssh; cat >>.ssh/authorized_keys'
ssh user@remote-system should work now, so should scp user@remote-system:/your/file. And if you chose to have no passphrase you will login automatically
Credits:
http://www.schlittermann.de/doc/ssh
|
TAGS
|
|
RELATED
|
Pages
Posts
|
|
SOCIAL
|


















