Showing posts with label passwordless ssh. Show all posts
Showing posts with label passwordless ssh. Show all posts

Friday, February 3, 2012

Setup passwordless ssh in Ubuntu, ssh localhost


1. ssh-keygen -t rsa -P "" 
 
-> this will generate key pair file in the current user .ssh folder
-> which is in home folder of user just press ctrl + h to show hidden files 
-> after giving this command just keep pressing enter dont enter file name or so
 
it will show    ->   Generating public/private rsa key pair.
 
Enter file in which to save the key    -> just press enter on this.
 
after this you will get the shell prompt back there you type
 
2. cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys 
 
-> this will create authorized_keys in .ssh folder and put your public key in that so that
-> you just type ssh localhost it will login to localhost without asking the password.
 
 

Featured Posts

Kali Linux Remote Desktop: Access GNOME from Windows Using Native RDP

  Kali Linux + GNOME 50 + GNOME Remote Desktop + Windows Remote Desktop (MSTSC) Getting a full GNOME desktop remotely on Kali Linux can be ...