![]() Copy files from the remote machine to your local machine Why? Because its syntax is similar to the cp command. Still, it is my favorite tool for transferring files between systems over SSH. I have read that scp is going to be deprecated. Method 1: Use scp command to copy files over SSH With that aside, let's see the methods for copying files between remote systems via SSH. ![]() know the IP address or hostname (on the same subnet) of the remote machine.know the username and password on the remote machine.have SSH access between the two machines.sftp clients: GUI tool for accessing file over SFTPįor a successful file transfer over SSH, you need to.sshfs: Mounting remote directory over SSH.rsync: Popular command for file synchronization.scp: Legacy command which is being deprecated.I am going to discuss the following methods here: There are various ways you can transfer files over SSH. Lastly, that -r for scp is required if you want to move a directory, or it would error out, though you cannot seem to reach that far.Sooner or later, you'll find yourself in a situation where you have to upload the file to the remote server over SSH or copy a file from it. I expect to have drag-n-drop working as long as command-line works. I am not 100% sure this will work, comment if doesn't. Try writing / and hitting TAB to see what else is there. However suggesting use of SCP rather than SFTP is fine as SFTP needs to be enabled in /etc/ssh/sshd_config file on the server.Īssuming above isn't the case, try running this within MobaXterm (without SSH'ing, make sure you have that colorful /home/mobaxterm line): scp -r /drives/c/Users/Name/Desktop/Folder-with-my-files-in that, this will copy under root account's home directory just to be on the safe side.ĪFAICT, MobaXterm uses CygWin under the roof, and above path is the way to refer to Windows disks rather than /C. The second link you provide is about permissions, and since this is Debian and you are root, I doubt that it is due to permissions (though AppArmor exists).Īccepted answer to the first link you provided is this one, and since you did not provide actual paths you use this might solve your problem. Ideally I just want to do the drag and drop. Once I put that in, I just get this error: /C/Users/Name/Desktop/Folder-with-my-files-in: No such file or directory Doing it with and without -r scp -r /C:/Users/Name/Desktop/Folder-with-my-files-in /C:/Users/Name/Desktop/Folder-with-my-files-in attempts connect to my remote host, and asks for a password. I then did it by defining the path of my local host path to the folder of files i want to upload. I've done this using the method below, and also tried adding the full path to it, like I've done in my 2. I tried doing the scp command just using one file. ![]() However, I'm either doing something wrong when setting the path to the file i want to upload, or something else is wrong. I followed suggestions from this thread, using the scp command. ![]() If i change it to SFTP I get "Permission denied" when I try to drag and drop. I've tried the suggestions changing the SSH-browser type under advanced SSH settings, to SCP(enhanced speed) and SCP (normal speed). When using the drag and drop, the upload just stays at 0%. I encountered a similar problem like OP in this thread. I keep running into different issues that simply don't allow me to do this. I want to upload files from my local computer to a remote server SSH through MobaXterm. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |