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.
Thread Tools Display Modes
Old 31st March 2012, 02:43
GioMBG GioMBG is offline
Junior Member
Join Date: Dec 2009
Location: Rimini
Posts: 28
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
Reply With Quote
Sponsored Links
Old 31st March 2012, 07:46
sjau sjau is offline
Local Meanie
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 Posts

1.) On the client (the computer that wants to do the login into another computer) go to
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:
ssh-keygen -t dsa
2.) Copy the public key to the "remote" computer where you want to login:
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:
ssh user@server
and you won't be prompted again.

And with rsync you'd just do:
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


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 01:15
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 14:31
Upgrade to php 5.2 in suse 10.1 gimhan90 Installation/Configuration 3 1st January 2009 21:32
Chroot ssh login problem gral Server Operation 3 2nd November 2007 19:25
adduser set passwd for ssh FastS General 1 26th March 2007 17:28

All times are GMT +2. The time now is 14:58.

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