Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have been trying for hours to do what should be a simple file copy using the scp command but havent had any sucsess.
I am trying to copy a file from the remote machine to my machine, the remote machine is at the uni i attend. I m having no problems logging in and editing files on the remote machine. From what I have read from the manual pages the command to do the copy should look somthing like this-
so i put in the details of the path to the source and destination and the username and machine name of the destination machine (the local machine as it were) and i get the following error-
ssh: kupris:name or service not known (kupris being the local machine name)
so the remote machine doesnt know where my local machine is, so how to i sort this out? i have tried using my IP address instead of computer name but probaly due to the nature of the university network it cant find my machine.
any help would be greatly appreciated, its driing me mental.
then its says permission denied to the destintion folder, the permission of the folder is set to permit everything (chmod 777) . so i was messing about trying to get it to work and set the destination to /home/ckupris/archive which is a folder on the remote machine and low and behold it copies the file. so obviously its trying to copy the file to the itself and not my machine, any ideas why?
Will try to create a file called colin in /home with the contents of file.txt to put the file in the folder colin you need to use this (extra slash means a directory):
scp ckupris@plato:/home/ckupris/file.txt /home/colin/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.