Connecting via SSH without password prompt ~ Codingfreak
description
Transcript of Connecting via SSH without password prompt ~ Codingfreak
-
7/17/15 Connecting via SSH without password prompt ~ Codingfreak
codingfreak.blogspot.com/2012/04/connectig-via-ssh-without-password.html 1/3
/* Ajith - Syntax Higlighter - End ----------------------------------------------- */
Codingfreak
Home Algorithms Data Structures Linux
4.06.2012
Connecting via SSH without password prompt
SSH is the common way to connect remote machines these days. Almost all kinds of applications use SSH in background for
communicating with end machines.
But sometimes typing password repeatedly for establishing a SSH connection with the trusted end machine is quite daunting
task.
Let us see how to automate the things in 3 simple steps where we can ssh to "user@host" without asking a password every
time. Replace user with the username and host with the remote machine ip-address or hostname. For E.g.
NOTE: Only do this with trusted machines.
1. Login to your local machine from which you want to ssh to remote machine. Go to your .ssh folder.
view plain print ?
01. cd ~/.ssh
2. Check if you have a 'id_rsa.pub' (or 'id_dsa.pub') file in .ssh folder. If not, try below command:
view plain print ?
01. ssh-keygen -t rsa
To make it simple just keep on pressing the ENTER key a bunch of times, even when it asks for a password.
3. Run ssh-copy-id
view plain print ?
01. ssh-copy-id -i id_rsa.pub user@host
If it asks for remote machine password then provide it so that it can create a security key successfully so that you dont
need to remember password everytime.
Its done .. Now you can ssh to user@host without being prompted for password.
codingfreak
83 have us in circles
GOOGLE+ FOLLOWERS
Fabrice Bellard
PROGRAMMERS THAT INSPIRE ME
Select Language
Pow ered by Translate
TRANSLATE
LABELS
-
7/17/15 Connecting via SSH without password prompt ~ Codingfreak
codingfreak.blogspot.com/2012/04/connectig-via-ssh-without-password.html 2/3
Newer Post Older PostHome
Subscribe to: Post Comments ( Atom )
Labels: How to , Linux
Enter your comment...
Comment as: Google Account
Publish Preview
Your comments are moderated
2 comments :
Anonymous June 30, 2012 at 4:30 AM
I was working for a while on this with no progress but your article saved me....Thank you so much!! :)
Reply
Anonymous October 25, 2012 at 7:15 PM
It's a life saviour!!
I work on more than 30 servers with 11 application users. Now using your article, I configured it and its working absolutely
fine. Thanks a lot!!
Reply
Computer Organization
DataStructures
How to Interview Question
Linked List Linux Open Source
Signals
Announcement Asterix Audio
Facts
Hacking Hardware
Laptop
Mobile Netw orks
Software Stack Windows
2013 ( 8 )
2012 ( 21 )
December ( 2 )
November ( 2 )
September ( 1 )
August ( 2 )
July ( 1 )
June ( 1 )
May ( 1 )
April ( 2 )
Uli Drepper - Basics you shouldknow about buffer ...
Connecting via SSH withoutpassword prompt
March ( 4 )
February ( 3 )
January ( 2 )
2010 ( 8 )
2009 ( 31 )
2008 ( 18 )
2007 ( 1 )
BLOG ARCHIVE
-
7/17/15 Connecting via SSH without password prompt ~ Codingfreak
codingfreak.blogspot.com/2012/04/connectig-via-ssh-without-password.html 3/3
Template images by enot-poloskun. Powered by Blogger.