View previous topic :: View next topic |
Author |
Message |
wilburpan l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Southpark/South_Park_-_Chinese.jpg)
Joined: 21 Jan 2003 Posts: 977
|
Posted: Thu Jul 17, 2003 1:25 pm Post subject: How to automatically ssh to another machine on boot/login? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
ben Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Jun 2002 Posts: 285 Location: Switzerland
|
Posted: Thu Jul 17, 2003 2:05 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
wilburpan l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Southpark/South_Park_-_Chinese.jpg)
Joined: 21 Jan 2003 Posts: 977
|
Posted: Thu Jul 17, 2003 10:26 pm Post subject: |
|
|
Thanks for the tip. scp is what I was looking for, but didn't know it at the time. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
puggy Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1938300246424d80c21584d.jpg)
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Thu Jul 17, 2003 10:58 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|