Under the thinclient_drives, find the Windows C drive:įinally, we can simply transfer files using copy and paste. Step 1: Make sure you are connected to the internet, then launch the MobaXterm application and log on to the remote machine.After logging in, open the file manager.When the login screen appears, input the credentials for the Linux system:.Accept the connection in the two subsequent windows.Choose what to share, including Clipboard and Local DrivesĪt this point, a new remote desktop connection window should show up:.Choose More button under the Local devices and resources section.Enter the Linux machine hostname or IP address in Computer.Once everything is set, we can transfer files with the Windows RDP client: Next, we’ll enable the default RDP port 3389 via ufw: $ sudo ufw allow 3389/tcpįinally, we restart the xrdp server: $ sudo systemctl restart xrdp $ sudo sed -i.bak '/fi/a #xrdp multiple users configuration \n xfce-session \n' /etc/xrdp/startwm.sh Thus, it creates an encrypted connection between the systems. Basically, to transmit data, SFTP relies on the SSH protocol. Notably, files can be transferred from and to either side. To transfer files, we can simply drag and drop files to the Linux system. Optionally, we can set the destination directory on the Linux system. Once we are connected, we can interactively locate files to be transferred from the FileZilla interface. Enter the correct password and continue.Hit the Connect button to connect to the Linux system.– Set the User as the correct Linux username – Keep the Logon Type as Ask for password – Set the Host as the Linux system hostname or IP address Copy files from the remote machine to your local machine Here's the scenario. Why Because its syntax is similar to the cp command. Still, it is my favorite tool for transferring files between systems over SSH. – Set the Protocol as SFTP – SSH File Transfer Protocol Method 1: Use scp command to copy files over SSH I have read that scp is going to be deprecated. Select the Site Manager option from the File menu.Let’s launch it and see how to leverage it for a file transfer: There are several free and premium SFTP clients available for Windows:įor this article, we’re using the FileZilla SFTP client. Next, we need an SFTP client on the Windows system. Notably, like SFTP, SCP uses the SSH protocol to securely transfer files between systems. Pscp.txt | 0 kB | 0.0 kB/s | ETA: 00:00:00 | 100%Īfter a successful operation, the file should appear in the specified directory on our Linux machine: $ ls /home/baeldung/Documents Of course, we confirm the operation by authenticating to the Linux machine to make the transfer: $ pscp C:\pscp.txt _server:/home/baeldung/Documents We can transfer it to the home directory of the Linux user baeldung: $ pscp C:\pscp.txt _server:/home/baeldung/ is the path where we want to put the file on the Linux systemįor example, let’s take the file pscp.txt residing on the C drive of our Windows system, i.e., C:\pscp.txt.is the hostname or IP address of the Linux system.is the path to the source file on the Windows system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |