Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st March 2012, 01:43
GioMBG GioMBG is offline
Junior Member
 
Join Date: Dec 2009
Location: Rimini
Posts: 23
Thanks: 2
Thanked 1 Time in 1 Post
Default needed link howto login with ssh no passwd for rsync

Hi All,
pretty sure that here there is the tutorial I'm searchin' like:
how to login from server to server without input passwd to use with cron and rsync
thx
GioMBG
Reply With Quote
Sponsored Links
  #2  
Old 31st March 2012, 06:46
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,126
Thanks: 4
Thanked 43 Times in 40 Posts
 
Default

1.) On the client (the computer that wants to do the login into another computer) go to
Code:
cd ~/.ssh
Check if there's is already a id_rsa.pub file

If that file does not exist, create a public and private key by running this command:
Code:
ssh-keygen -t dsa
2.) Copy the public key to the "remote" computer where you want to login:
Code:
ssh-copy-id -i .ssh/id_dsa.pub user@server
user@server is the user on the remote computer where you want to login and server is the address or domain name of it

3.) After successfully copying it with ssh-copy-id, you can just ssh to that remote computer:
Code:
ssh user@server
and you won't be prompted again.

And with rsync you'd just do:
Code:
rsync -[OPTIONS] -e "ssh" /path/to/local/directory user@server:/path/to/remote/directory
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with ISPConfig Mail and Squirrelmail m.xander Installation/Configuration 109 3rd February 2012 00:15
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 13:31
Upgrade to php 5.2 in suse 10.1 gimhan90 Installation/Configuration 3 1st January 2009 20:32
Chroot ssh login problem gral Server Operation 3 2nd November 2007 18:25
adduser set passwd for ssh FastS General 1 26th March 2007 16:28


All times are GMT +2. The time now is 10:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.