Link to home
Start Free TrialLog in
Avatar of bkreynolds48
bkreynolds48

asked on

ssh on SUN solaris 10 to linux without allowing others access

I am not sure exactly how to do this.
I need to pull some data over on a regular basis which I can schedule in cron but the only way to get from the SUN to the linux box is via ssh.
I have a directory on the SUN called /backup/reporting and need to execute a file on the linux system in directory /root/backup then pull the tar file back to the SUN system.
I can ssh to the box but have to put the password in.  I thought if you generated a public key you would have to put it in the home directory and on the linux system this would be "ROOT".  Others have access to the linux box and I don't want them getting into the SUN box so is there a way around this?

Thanks
Avatar of Brian Utterback
Brian Utterback
Flag of United States of America image

The procedure to set up ssh access without passwords is here:

http://linuxproblem.org/art_9.html
Avatar of bkreynolds48
bkreynolds48

ASKER

blu the problem with that is that it places the key in the users root directory - I want to avoid that if possible
Why is it a problem having the public key sitting in the root home directory?  Putting the public key on the Linux box is NOT going to allow Linux users to get to the Sun box.
ASKER CERTIFIED SOLUTION
Avatar of Brian Utterback
Brian Utterback
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
both users on the linus and the sun are "root" - the linux users all log in as root - not my choice but that is how things work.  So are you saying that if the permissions on the SUN side are restricted then the linux users won't be able to access root on the SUN?
thanks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry to be so paranoid about root access - and thanks