Tuesday, 20 August 2013

How to specify local machine when already sshed into another computer?

How to specify local machine when already sshed into another computer?

It's easy to simply scp from another computer to the local one or vice
versa. However, how to do it when you already sshed into another computer?
user@anothercomp:~/$ssh ~/path/file (how to specify local
computer?):~/localpath/file
Note that my computer is a personal laptop instead of a server, so answers
here Download files to local drive when sshed do not apply since it
requires to specify the domain name, and my laptop is no server.
So what's the correct way to specify my local computer? (Please don't say
exit ssh and then scp, since it will possibly lose temporary data when
working)

No comments:

Post a Comment