LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-09-2008, 02:26 PM   #1
yitzle
Member
 
Registered: Aug 2006
Posts: 50

Rep: Reputation: 15
rsync over ssh - "wrong password"?


Hi
I got a server that has sshd bound to port 12345 and rsyncd bound to port 54321.
The server has my PC listed in its ssh authorized_keys so I can SSH in without giving a password.
I tried rsync'ing to that machine:
> rsync local_folder me.gotdns.com:~

1) The ssh known_host key it uses is different from the key I get when I SSH, so I got to remove the key from known_hosts to rsync after I SSHed and vice versa.
2) Am I supposed to pass --port=12345? Or --port=54321?
3) With either of those ports, it doesn't accept my password.

Please advise?
 
Old 01-09-2008, 03:50 PM   #2
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Try something like:

Code:
rsync -e "ssh -p 12345" local_folder me.gotdns.com:~
HTH

Forrest
 
Old 01-09-2008, 03:59 PM   #3
yitzle
Member
 
Registered: Aug 2006
Posts: 50

Original Poster
Rep: Reputation: 15
That does the job... Thanks.
 
Old 01-10-2008, 12:34 PM   #4
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Glad I could help.

Forrest
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kopete & msn => "password wrong" while it definitely isn't... why?? ungua Linux - Software 6 06-02-2011 05:59 AM
No longer able to log into ssh. Password right but "permission denied" Baix Linux - Software 11 11-21-2008 12:44 PM
rsync without "-e ssh". Still safe? Micro420 Linux - Security 3 12-20-2006 12:35 PM
Why does "crond" sleep and "ssh" hung up? Chowroc Linux - Networking 0 01-12-2006 12:24 AM
SSH/rsync "Connection reset by peer" hamish Linux - Networking 6 12-10-2005 06:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration