Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
92
rated 0 times [  92] [ 0]  / answers: 1 / hits: 268773  / 2 Years ago, fri, may 6, 2022, 10:19:17

This is probably a simple error, but I can't work it out.
My computer hostname is Felix (hostname -f returns Felix)
I am trying to move a file from my university account to my home computer using scp.
I can ssh easily to the remote computer so that connection is fine, the scp syntax I am using is (whilst connected to remote computer via ssh):



scp myusername@university_computer:/home/myusername/file.odt homeusername@Felix:Desktop/file.odt


I have tried a number of variations of this, and the error it returns is:



ssh: Felix: Name or service not known


Which suggests to me that using homeusername@Felix isn't the right syntax to be using.



I am not a superuser on the university system and only have access to my files, so cannot access any system files.



Any ideas?


More From » networking

 Answers
3

You do not need to specify your local hostname to scp a file from your university computer. What you need to do is from your home computer open a terminal (Ctrl + Alt + T) and type the following command:



scp myusername@university_computer:/home/myusername/file.odt /local/destination/path/


where /local/destination/path is the local path on Felix where you wish to store the file.


[#30058] Saturday, May 7, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sigtestim

Total Points: 298
Total Questions: 108
Total Answers: 106

Location: Bermuda
Member since Thu, Apr 20, 2023
1 Year ago
;