IPB

Welcome Guest ( Log In | Register )

 Forum Rules 
Solo PerformanceUnbalanced EngineeringUMI PerformanceHotpart.comBlaine Fabrication.com
 
Reply to this topicStart new topic
> Any Linux Admins?, rsync question
CJ-TA
post Sep 15 2006, 09:01 PM
Post #1


Advanced Member
**

Group: Advanced Members
Posts: 384
Joined: 2-October 05
From: San Antonio, Tx
Member No.: 905



This is a smidge over my head in Linux.

I have 2 boxes, both have disabled password authentication for use with putty.

I'm trying to rsync two servers:

From my backup box:

rsync -e ssh -avz --delete --stats --progress user@server:/path /path

That has worked forever (IMG:http://www.frrax.com/rrforum/style_emoticons/default/tongue.gif)

Now that I have disabled password auth, I'm getting this:

Permission Denied (publickey, gssapi-with-mic)

How do I get my putty private/public keys to work with rsync between two servers with pass auth disabled with my putty keys?

This post has been edited by CJ-TA: Sep 15 2006, 09:28 PM
Go to the top of the page
 
+Quote Post
Crazy Canuck
post Sep 15 2006, 09:40 PM
Post #2


North of the border
***

Group: Admin
Posts: 2,307
Joined: 4-February 04
From: Montreal, CANADA
Member No.: 177



do you have a public key ?
if so make sure you copy it on the servers you want to login via ssh without pwd entry.
the key should be added in the /home/<user>/.ssh/authorized_keys
Go to the top of the page
 
+Quote Post
CJ-TA
post Sep 15 2006, 09:42 PM
Post #3


Advanced Member
**

Group: Advanced Members
Posts: 384
Joined: 2-October 05
From: San Antonio, Tx
Member No.: 905



QUOTE (Eugenio_SS @ Sep 15 2006, 04:40 PM) *
do you have a public key ?
if so make sure you copy it on the servers you want to login via ssh without pwd entry.
the key should be added in the /home/<user>/.ssh/authorized_keys


I can log in from putty on my WS to each server.

It's failing when I try to log in from server to server.

Do the servers, each need their own set of keys? I was hoping to use my putty keys to keep continuity between everything.

This post has been edited by CJ-TA: Sep 15 2006, 09:43 PM
Go to the top of the page
 
+Quote Post
Crazy Canuck
post Sep 15 2006, 09:47 PM
Post #4


North of the border
***

Group: Admin
Posts: 2,307
Joined: 4-February 04
From: Montreal, CANADA
Member No.: 177



there is also the file known_hosts under the .ssh folder that should contain the key of the other server you are trying to get in.
Go to the top of the page
 
+Quote Post
CJ-TA
post Sep 15 2006, 10:17 PM
Post #5


Advanced Member
**

Group: Advanced Members
Posts: 384
Joined: 2-October 05
From: San Antonio, Tx
Member No.: 905



Got it..

I guess I was making it more complex than it needed to be.

The change between authorized_keys and authorized_keys2 and the keys between systems is what threw me off.
Go to the top of the page
 
+Quote Post
Crazy Canuck
post Sep 16 2006, 12:11 AM
Post #6


North of the border
***

Group: Admin
Posts: 2,307
Joined: 4-February 04
From: Montreal, CANADA
Member No.: 177



i'm assuming you made it work then.
btw, i'm not a sys-admin, but know my way around... config-mangement-admin (IMG:http://www.frrax.com/rrforum/style_emoticons/default/smile.gif) but also do operations (ie some sys-admin tasks too)
Go to the top of the page
 
+Quote Post
RedHardSupra
post Sep 16 2006, 12:50 AM
Post #7


Advanced Member
**

Group: Advanced Members
Posts: 452
Joined: 12-January 04
From: Charleston, SC
Member No.: 121



depends how you're trying to do it. do you wanna do rsh-over-ssh or do you want a standalone rsh? if you wanna do it over ssh, then you gotta get passwordless ssh logins to work first, there's plenty of writeups on that, best ones are on ibm's site.

standalone rsh is much easier, you make your own password file, and just go against that. the bad part is that i don't think transmissions are encoded, but the good part is that it's completely separate so you don't have to update it every time you gotta change the password.
Go to the top of the page
 
+Quote Post
Crazy Canuck
post Sep 16 2006, 12:53 AM
Post #8


North of the border
***

Group: Admin
Posts: 2,307
Joined: 4-February 04
From: Montreal, CANADA
Member No.: 177



i use ssh only... rsh is (IMG:http://www.frrax.com/rrforum/style_emoticons/default/rant.gif)
Go to the top of the page
 
+Quote Post
CJ-TA
post Sep 16 2006, 01:21 AM
Post #9


Advanced Member
**

Group: Advanced Members
Posts: 384
Joined: 2-October 05
From: San Antonio, Tx
Member No.: 905



QUOTE (RedHardSupra @ Sep 15 2006, 07:50 PM) *
depends how you're trying to do it. do you wanna do rsh-over-ssh or do you want a standalone rsh? if you wanna do it over ssh, then you gotta get passwordless ssh logins to work first, there's plenty of writeups on that, best ones are on ibm's site.

standalone rsh is much easier, you make your own password file, and just go against that. the bad part is that i don't think transmissions are encoded, but the good part is that it's completely separate so you don't have to update it every time you gotta change the password.


I have the two servers connecting now, but, I'm now being prompted for the rsync password for my RSA key.

I had it working with passwordless authentication, but, since I've turned off pass-auth, the passwordless rsync, syncs, are now asking for passwords.

I'm still playing with it.
Go to the top of the page
 
+Quote Post
RedHardSupra
post Sep 16 2006, 01:27 AM
Post #10


Advanced Member
**

Group: Advanced Members
Posts: 452
Joined: 12-January 04
From: Charleston, SC
Member No.: 121



blah, replace all my previous rsh with rsync...long week...

rsync can work completely on its own authentication scheme, i have it working from windows to bsd this way. that's what i was talking about, not piggybacking of some ancient rsh stuff...sorry
Go to the top of the page
 
+Quote Post
Crazy Canuck
post Sep 17 2006, 07:43 PM
Post #11


North of the border
***

Group: Admin
Posts: 2,307
Joined: 4-February 04
From: Montreal, CANADA
Member No.: 177



QUOTE (RedHardSupra @ Sep 15 2006, 09:27 PM) *
blah, replace all my previous rsh with rsync...long week...

rsync can work completely on its own authentication scheme, i have it working from windows to bsd this way. that's what i was talking about, not piggybacking of some ancient rsh stuff...sorry

makes more sense... why would one want to go through non-secure shell.. lol
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 16th June 2025 - 08:29 AM