How to download a file from linux to windows






















Again, assuming the tftp utility is installed, you can grab a file with one line from the Windows prompt. Just simply use the -i flag and the GET action. If you really wanted to, you can actually enable TFTP from the command line:. This is actually my favorite method to transfer a file to a Windows host. You can simply use the standard copy and move commands and SMB handles the file transferring automatically for you.

Trying to get Samba set up and configured properly on Linux is a pain. Now Samba an actually do some really cool stuff when you configure it to play nicely with Windows AD, but most of the time I just want a super simple server up and running that accepts any authentication and serves up or accepts files.

Enter smbserver. To launch a simple SMB server on port , just specify a share name and the path you want to share:.

Apr 2, at am. Or you can just use Wordpad! Which understand linux text files. Jul 10, at pm. AJeet Singh Khamare. Aug 1, at am. Thanks was a great help. For operating systems based on Debian such as Ubuntu or Kubuntu , use the following command:. Therefore, the command is as follows:.

To test if the setup was successful, connect to your server via SSH. Open a terminal from your Linux or Apple client and execute the following command:. If you are using an SSH key, enter the password for your key now.

Otherwise, the password for the user on the remote computer must be specified. If everything is set up, the console of the remote computer should now be visible. If not, check your firewall settings. Belle Belle 13 1 1 gold badge 1 1 silver badge 5 5 bronze badges. Add a comment. Active Oldest Votes. You can use it from command line: pscp user host:source target Where user and host refer to the server you are connecting to.

Improve this answer. Ok, I understand how to find paths to other parts within your directories in Linux, but without giving away the answer or command , is it possible to find the path to the desktop of the current computer you are using, in other words, can you access folders outside of linux? For example, "My Documents" in Windows? No you can't read out from remote computer to local when using ssh putty.

You need to run a putty command on the local machine, to go grab the file. You could do a ssh back from the remote to the local, but you seem to be using Microsoft's Windows so you can't. Another classmate did the same! She used Filezilla to save a file she has saved in her Linux directory and then you could see the file on her desktop.

The desktop was on a university's computer — Belle. It may be better to ask the local IT-support team, at the university. To end the SFTP session, type bye. Christopher Christopher Now Samba an actually do some really cool stuff when you configure it to play nicely with Windows AD, but most of the time I just want a super simple server up and running that accepts any authentication and serves up or accepts files.

Enter smbserver. To launch a simple SMB server on port , just specify a share name and the path you want to share:. The python script takes care of all the configurations for you, binds to , and accepts any authentication.

It will even print out the hashed challenge responses for any system that connects to it. You can confirm it with smbclient from Linux:.

Basic Windows file commands like dir , copy , move , etc all just work:. If you look at the output from smbserver. Executing files from SMB.



0コメント

  • 1000 / 1000