Admin Books
DOWNLOAD Free e-Books for Linux Admin Servers :
Passwordless SSH Login
Just a quick post on a tool I have found handy through the years. Passwordless ssh. Very very quick to implement on all Linux systems regardless of distro. Also works fine on Solaris.
ssh-keygen -t rsa
Pick the default location to store id-rsa and do not enter a password
Enter file in which to save the key (/home/user1/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user1/.ssh/id_rsa.
Your public key has been saved in /home/user1/.ssh/id_rsa.pub.
Now you have created your key pair. If you are doing this from your own network login e.g. user1 and you have your home account on storage somewhere all you need to do is this to achieve passwordless ssh login.
cd ~/.ssh
cat id_rsa.pub > authorized_keys
For a regular user, you are done.
For root , you need to scp this authorized_keys file to all your hosts. A simple enough script can achieve this
scp ~/.ssh/authorized_keys root@remote_server:~/.ssh/
Done!
Subscribe to:
Post Comments (Atom)
Category
vps
bash
csf
security
backup
virtualmin
webmin
browser
ConfigServer Security Firewall
apache2
centos
control panel
dns
dovecot
firewall
hack
import firefox into linux
installation
klogd
nginx
passwordless ssh
promo vps
rsync backup
search bash find
ssh
syslog
tips
varnish
webuzo
wordpress
Suspicious Process
apache
awstats
bash pdf search
cache server
centos server
centos web panel
cheapest vps
cloudflare
compare area
compare region
cwp
date
deb
debian
discount vps
domain name
exim
file management
find and replace
google map
hosting
how to hack vps phpmyadmin 2012
ip address
ipt_recent
linux mint
map
misleading
mysql
perl
php vps info script
plugin
postfix
proxy
rdiff-backup
recursive
red hat
relay email not permitted
repo
seo
server monitor
special offer
squirrel mail
time
timezone
ubutu
vps hosting
vps info
vps monitor
vps special
vzctl
web hosting
xt_connlimit
yum
No comments:
Post a Comment