I'm going to do my best to try to explain the complex situation I'm in:
Username: sysadmin on both LAPTOP and HOMEPC
My goal was to use my LAPTOP from another state (and another isp) to access my HOMEPC in California. I've configured my HOMEPC to wakeonlan through the internet using dyndns.org and I can ssh to my HOMEPC through my LAPTOP from another isp just fine. I can browse the directories, etc.
I am having trouble figuring out how to copy files from my HOMEPC to my LAPTOP through ssh as both are on different isps and not on a wlan.
I tried using scp but I get the following output:
So it seems like it's not recognizing my hostname of LAPTOP, which is the actual computer I am on and using... I noticed that my "hostnames" change while I am on the LAPTOP: when I open a console it says sysadmin@LAPTOP but as I ssh into my HOMEPC, the console title changes to sysadmin@HOMEPC, as shown above.Code:sysadmin@LAPTOP:~$ ssh XXXX.dyndns.org sysadmin@XXXX.dyndns.org's password: Linux HOMEPC 2.6.24-16-generic #1 SMP Thu Apr 10 13:23:42 UTC 2008 i686 The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. To access official Ubuntu documentation, please visit: http://help.ubuntu.com/ Last login: Thu May 22 20:12:34 2008 from adsl-XXXXXX.net sysadmin@HOMEPC:~$ scp oc.mov sysadmin@HOMEPC:/Desktop sysadmin@LAPTOP:/Desktop ssh: LAPTOP: Name or service not known lost connection
Again, through ssh I can browse through my LAPTOP all the files on HOMEPC, but I can't figure out how to copy them over through the internet using ssh... There's something trivial missing here I think.
What am I doing wrong?
Thanks in advance. If you need more info please request.