How to Login without Password in Linux

Secure Shell (SSH) an open source and most commonly used network protocol by all for remote login on servers. SSH was a replacement for...


Secure Shell (SSH) an open source and most commonly used network protocol by all for remote login on servers.


SSH was a replacement for Telnet and other unsecured remote shell protocols such as rlogin, rsh and rexec and it is mainly used for many applications across many platforms including Linux, MacOS, Solaris and BSD

Also using the SCP protocol files can be transferred from one computer to another
In this tutorial I will show you how to setup a passwordless login to the remote server, this document can be used on all Linux operating systems (ie) Ubuntu, LinuxMint, Fedora, Redhat, CentOS and FreeBSD
  • Server 1: Ubuntu 16.04
  • Server 2: LinuxMint 17

Setup SSH Login without password

Step 1: Create Keys using ssh-keygen

Here i am creating the authentication keys on Ubuntu server


Step 2: Create ssh directory on the target server
$ ssh admin@192.168.211.134 mkdir -p .ssh
admin@192.168.211.134's password:

Step 3: Append the newly created public key to the target server's authorized key file

$ cat .ssh/id_rsa.pub | ssh admin@192.168.211.134 'cat >> .ssh/authorized_keys'
admin@192.168.211.134's password:

Step 4: Test the login and change the .ssh folder's permission to 700
$ ssh admin@192.168.211.134
Welcome to Linux Mint 17.3 Rosa (GNU/Linux 3.19.0-32-generic x86_64)

Welcome to Linux Mint
 * Documentation:  http://www.linuxmint.com
Last login: Tue May  2 11:07:57 2017 from 192.168.211.151
admin@askmetutorials ~ $

COMMENTS

Name

0 A.D,1,Amazon Quiz,1,Android,1,Android Guide,1,Android Updates,4,Atom,6,Audacious,3,Audacity,2,Automation,1,Avidemux,1,BleachBit,1,Blender,6,Bluefish,2,Bluehost,13,Bluehost Coupons,25,Brackets,2,Calibre,2,CDROM,1,CentOS,105,CentOS 8,3,CherryTreeEditor,1,Cinnamon,1,Clementine,1,Coupons,20,Darktable,8,Debian,14,digikam,6,Disable nouveau drive,1,Docker,1,Domain coupons,2,Domaincoupons,2,Driver,1,DVDROM,1,editor,3,Fail2Ban,1,Fedora,76,Fedora 26,12,FFmpeg,4,Firefox,32,firefox61,3,FlightGear,1,Foodpanda,1,Fotoxx,3,FreeOffice,1,Frostwire,1,GatewayIP,1,Gimp,5,Git,19,Google Chrome,1,HandBrake,1,Hostgator,1,Hostgator Coupons,1,How,1,How To,569,HPLIP,15,iPage,1,iPage Coupons,1,Kdump,1,KeePassXC,2,kernel,50,Kodi,12,Krita,6,Libreoffice,13,Linux Mint,19,LinuxMint,306,LVM,1,MariaDB,1,MIUI,5,MKVToolNix,11,Mobile News,3,Musicplayer,1,MyThemeShop,2,MyThemeShop coupons,2,Namecheap,5,Netbeans,1,NFS,1,NFS Server,1,Nuvola,1,NVIDIADriver,21,Oh-My-Zsh,1,OnePlus,1,OnePlus Buds,1,OpenOffice,2,openSUSE,2,Opera,2,OPPO Updates,1,OS Upgrade,1,OTA Update,1,Pidgin,3,pinta,1,Plasma,2,POCO,1,POCO F1 Update,1,qBittorrent,3,Redhat,31,Redhat 8,1,Redmi Note 7 Pro Update,1,Redmi Note 9 pro MAX Update,1,Redmi Note 9 pro Update,1,RedmiNote7proUpdate,1,Rhythmbox,1,runlevel,1,SiteGround,9,SiteGround Coupons,7,Skype,6,SMPlayer,2,SparkyLinux,1,SSH,1,Stellarium,3,Sudo,1,Tesla Coupons,1,TeslaThemes,2,Themes,1,TORbrowser,3,Ubuntu,533,uGet,3,Upgrade,2,Video Editor,1,VidMasta,1,Virtualbox,27,Vivaldi Browser,3,VLC,5,VxVM,1,Wavebox,1,Webhosting tutorials,2,Wine,21,Winrar,1,Wireshark,19,
ltr
item
askmetutorials: How to Login without Password in Linux
How to Login without Password in Linux
https://4.bp.blogspot.com/-KWA5m3hZCX0/WRCAjA_R4LI/AAAAAAAAEx8/zB6CTB_n4lUK0Qgzpq-NFgyFmmBk1a3RQCLcB/s200/ssh-icon-15047.png
https://4.bp.blogspot.com/-KWA5m3hZCX0/WRCAjA_R4LI/AAAAAAAAEx8/zB6CTB_n4lUK0Qgzpq-NFgyFmmBk1a3RQCLcB/s72-c/ssh-icon-15047.png
askmetutorials
https://www.askmetutorials.com/2017/05/how-to-login-without-password-in-linux.html
https://www.askmetutorials.com/
https://www.askmetutorials.com/
https://www.askmetutorials.com/2017/05/how-to-login-without-password-in-linux.html
true
7830501603203534059
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content