Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to automatically ssh to another machine on boot/login?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Thu Jul 17, 2003 1:25 pm    Post subject: How to automatically ssh to another machine on boot/login? Reply with quote

I figured out how to use ftp to connect to my home machine from my laptop so that whenever I startup and login to my laptop, it automatically ftp's to my home computer and downloads some files that I would like to keep synchronized between the two computers. I was congratulating myself on being very clever until I found out what a huge security risk this is, since my username and password are sent out over the internet unencrypted. It looks like I should use ssh for this, and I am able to ssh manually to my home computer, but I would like to make this an automatic process as well. I've gone through the manuals, but just can't seem to figure this out.

I don't think I need a step-by-step guide, but any pointers on how to get this going would be greatly appreciated.
Back to top
View user's profile Send private message
ben
Apprentice
Apprentice


Joined: 10 Jun 2002
Posts: 285
Location: Switzerland

PostPosted: Thu Jul 17, 2003 2:05 pm    Post subject: Reply with quote

Well, you could wrtie a script that start automatically on boot (say in /etc/init.s/local) that do:
scp you@yourhost.yourdomain.com/path/to/yourfiles path/to/whereyouwantthem.

For it to work without intervention, you should exchange the rsa or dsa key once and for all

see man sshd

HTH

Ben
Back to top
View user's profile Send private message
wilburpan
l33t
l33t


Joined: 21 Jan 2003
Posts: 977

PostPosted: Thu Jul 17, 2003 10:26 pm    Post subject: Reply with quote

Thanks for the tip. scp is what I was looking for, but didn't know it at the time.
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Thu Jul 17, 2003 10:58 pm    Post subject: Reply with quote

wilburpan wrote:
Thanks for the tip. scp is what I was looking for, but didn't know it at the time.


Or you could just have used ssl with ftp.

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum