Professional Documents
Culture Documents
Thanks
Jagan
27.
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
16 of 26 Monday 01 September 2014 11:11 AM
Reply
sugatant itlog says:
April 13, 2014 at 12:35 am
Thank you and it work perfectly. But I think those that got problems using this
guidelines was because of SELinux. Cause I experienced the same following
this guide in a centos/rhel environment.
Just do the either of the below commands and afterwards you should be able
to ssh without asking for password.
[root@centossrv1 ~]# ssh root@tester1 restorecon -R /root/
root@tester1s password:
or
[root@tester1 ~]# restorecon -R /root/
Again, thank you tecmint and more power!
Reply
sugatant itlog says:
April 13, 2014 at 12:44 am
[root@centossrv1 ~]# cat .ssh/id_rsa.pub | ssh root@tester1 cat >>
.ssh/authorized_keys
root@tester1s password:
[root@centossrv1 ~]# ssh root@tester1 chmod 700 .ssh; chmod 640
.ssh/authorized_keys; chmod go-rwx .ssh/authorized_keys
root@tester1s password:
Well, this was I did. in my case.
Thanks again!
Reply
bigdog says:
June 14, 2014 at 12:21 am
I was stuck and this step denitely helped. Thank you.
Reply
28.
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
17 of 26 Monday 01 September 2014 11:11 AM
Meszias says:
April 16, 2014 at 10:35 pm
I havent realized about the chmod on path and on the le
Reply
29.
srikanth says:
May 5, 2014 at 1:52 pm
I followed up all the steps and got no error whatsoever. But it still doesnt
work. Any ideas?
Tnx
Reply
30.
kumaravel says:
May 13, 2014 at 8:14 pm
I have followed the steps given
But I think there is a problem with the user I am trying to login with because
of which passwordless ssh is NOT working
Reply
31.
Vin says:
May 15, 2014 at 12:26 am
check the stickybit on the folder which contains .ssh folder, remove the
stickybit if it exists chmod g-s dirname
Reply
32.
Praveen says:
May 19, 2014 at 2:42 pm
Sir ,
I am using your following step, I am trying to login. which passwordless ssh is
NOT working.
Reply
33.
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
18 of 26 Monday 01 September 2014 11:11 AM
Ravi Saive says:
May 19, 2014 at 4:30 pm
Have you correctly placed SSH key in remote server authorized le?
Reply
Shivaji says:
May 24, 2014 at 7:40 am
Thanks Ravi.Worked for me
Reply
Ravi Saive says:
May 24, 2014 at 12:07 pm
Welcome Bro, I a happy it worked for you..
Reply
34.
Vlad says:
June 6, 2014 at 1:45 am
I fought with this for a while and found that the permissions on the users
home directory needed to be updated from:
drwxrwxr-x
to:
drwxr-xr-x
by running the following as the user in the users home dir:
[user@host ~]# chmod 755 .
This xed it for me.
Reply
35.
Deepak Gupta says:
June 26, 2014 at 2:54 am
36.
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
19 of 26 Monday 01 September 2014 11:11 AM
Absolutely love this post !! Thanks for sharing these steps.
Reply
dung says:
July 2, 2014 at 2:38 pm
work perfect for me!
ENV:
- client: GLSDK 6.04 for OMAP5 EVM reference board
- server: CentOS 5.5
Thanks!
Reply
37.
srikant says:
July 10, 2014 at 12:28 pm
Hi ,
I was able to successfully able to login to server 2 passwordlessly from server
1. But this is getting reset after a while( maybe after 24 hours) and again i
have to enter password. How to make this change permanent.
Reply
Ravi Saive says:
July 10, 2014 at 3:55 pm
No, it will not automatically reset itself, someone from you team might
doing it or some scripts might reset your ssh logins.
Reply
sugatang itlog says:
July 30, 2014 at 5:10 am
Or probably theres system conguration management (like chef, puppet,
ansible and the like) that governs (your infrastructure) the ssh
authorized_keys.
Reply
38.
Nick says: 39.
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
20 of 26 Monday 01 September 2014 11:11 AM
August 8, 2014 at 11:37 am
Hello Can you help me. While setting up ssh key i forgot to give 600
permission to authorized_keys le and now connection is closed please help
me with this, now how can i login to other server its always showing
connection closed by some ip. Please help
Reply
Anand says:
August 14, 2014 at 1:24 pm
Hello Ravi,
I followed your steps to do password-less ssh between two ubuntu systems,
the commands executed properly, not even single error but after everything
still it is asking password to connect.
** any dierent procedure for ubuntu OS???
Please help me out..
Reply
Ravi Saive says:
August 16, 2014 at 11:54 am
Procedure is same for all Linux OSs, but never yet tried on Ubuntu
systems, will try and let you know, why its still asking for password.
Reply
40.
Leave a Reply
Name (Required)
Mail (will not be published) (Required)
Website
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
21 of 26 Monday 01 September 2014 11:11 AM
Submit Comment
Twitter 1703 Twitter
Facebook 38814 Facebook
Google+ 6338 Google+
RSS 3656 Subscribers
Become A TecMint Subscriber to receive latest Updates.
Enter Your Email Address :) Signup!
Popular
Latest
Comments
Tags
How to Add Linux Host to Nagios Monitoring Server Using NRPE Plugin 208
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
22 of 26 Monday 01 September 2014 11:11 AM
Comments
Nagios 4.0.1 Released Install on RHEL/CentOS 6.x/5.x and Fedora 19/18/17
174 Comments
CentOS 6.4 Step by Step Installation Guide with Screenshots 169 Comments
Wine 1.6.2 Stable Released Install in RHEL, CentOS and Fedora 163
Comments
Install Apache 2.2.15, MySQL 5.5.34 & PHP 5.5.4 on RHEL/CentOS 6.4/5.9 &
Fedora 19-12 158 Comments
Google Chrome 35 Released Install on RHEL/CentOS 6 and Fedora 20-15
142 Comments
:: Advertise ::
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
23 of 26 Monday 01 September 2014 11:11 AM
:: Download Free Linux eBooks ::
Complete Linux Command Line Cheat Sheet
The GNU/Linux Advanced Administration Guide
Securing & Optimizing Linux Servers
Linux Patch Management: Keeping Linux Up To Date
Introduction to Linux A Hands on Guide
Understanding the Linux Virtual Memory Manager
Linux Bible Packed with Updates and Exercises
A Newbies Getting Started Guide to Linux
Linux from Scratch Create Your Own Linux OS
Linux Shell Scripting Cookbook, Second Edition
Securing & Optimizing Linux: The Hacking Solution
User Mode Linux Understanding and Administration
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
24 of 26 Monday 01 September 2014 11:11 AM
Know More
Submit Order
:: Follow Us ::
TecMint.com
google.com/+Tecmint
Tecmint: Linux Howtos, Tutorials & Guides
+ 6,932
Follow +1
:: About ::
TecMint.com is a website that publishes practical and useful out-of-the-box articles
for aspirant like you and me. We seek to present exceptional, remarkable tips,
tutorials, and resources that the modern web professional will appreciate.
:: Our Services ::
We oer wide range of Linux Web Hosting and Management Services
includes Linux hosting, WordPress hosting, Joomla Hosting, CMS hosting, Website
migration and Custom solutions, making us a one-stop destination for all your
possible hosting needs at fair minimum rates.
:: Advertise ::
TecMint.com is visited by tens of thousands of Linux users and has a
excellent reputation in the search engine ranking. Most of the traic comes from
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
25 of 26 Monday 01 September 2014 11:11 AM
Advertise Now
Google organic search (80%). Spread your messages or products to an engaged
readers by advertising with us.
This work is licensed under a (cc) BY-NC | TecMint uses cookies. By
using our services, you comply to use of our cookies. More info:
Privacy Policy.
2012-2014 All Rights Reserved.
10 Useful Free Linux eBooks for Newbies and Administrators
25 Hardening Security Tips for Linux Servers
60 Commands of Linux : A Guide from Newbies to System Administrator
15 Command Line Tools to Monitor Linux Performance
5 Best Practices to Secure and Protect SSH Server
18 Tar Command Examples in Linux
20 Linux YUM (Yellowdog Updater, Modied) Commands
25 Useful Basic Commands of APT-GET and APT-CACHE
20 Funny Commands of Linux or Linux is Fun in Terminal
35 Practical Examples of Linux Find Command
10 Linux Distributions and Their Targeted Users
SSH Passwordless Login Using SSH Keygen in 5 ... http://www.tecmint.com/ssh-passwordless-login-u...
26 of 26 Monday 01 September 2014 11:11 AM