Solved

Copy a file from laptop to UNIX using putty?

Posted on 2013-05-24
8
760 Views
Last Modified: 2013-05-31
I would like a copy a file from my local windows machine to a remote unix server using putty.

How can I do this?
0
Comment
Question by:sventhan
8 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 250 total points
ID: 39195305
There is a utility "pscp" (= an SCP client for PuTTY).

It is part of the PuTTY suite and can use PuTTY's stored session profiles for connecting.

Get it from here:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

Here are the docs:

http://the.earth.li/~sgtatham/putty/0.62/htmldoc/Chapter5.html#pscp
0
 
LVL 18

Author Comment

by:sventhan
ID: 39195336
I tried and I've got the following Error.
Fatal: Network error: Connection refused



I can only connect to this server using putty on telnet, port 23.  I could not able to get this done using WinScp or FileZilla.

thanks,
Sve
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 250 total points
ID: 39195385
So you're using PuTTY as a telnet client instead of as an ssh client.

If port 23 is indeed the only port which is available to you then you're basically lost - the telnet server listening to that port is not meant for providing file transfer capabilities.

Aren't there indeed any other ports available? FTP? RCP? I must say I didn't see many servers holding the insecure telnet port open while leaving the secure ssh in the cold.

It might be that some legacy terminal software like xmodem or zmodem can do the trick - need to find a Windows version though.

curl can use telnet - but I never installed it on Windows, yet there are binaries for that platform.
Try it if you like:

http://curl.haxx.se/download.html
0
 
LVL 4

Expert Comment

by:EddyvanOpdorp
ID: 39195557
If you can use ssh (and you can because you use putt) then is the easiest way to use winscp.
You can download this tool here:
http://winscp.net/eng/download.php
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 28

Expert Comment

by:serialband
ID: 39195771
Are you sure that you are using the ssh protocol and not just using telnet?  Did you change the sshd port to 23 on the server.  That's actually not recommended.  You should use a port above 1024 if you're going to change the default port.
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 125 total points
ID: 39195962
The connection refused you go is either because sshd is not running on the remote system, or there is a firewall terminating / denying your connection, or miss translating (IP NATing) of remote system IP.

you can try to see if sshd is running or not by logging to the remote system (with telnet, for example) and then run below command

ssh 0

if you get the same message then sshd is not running and you need to run it as user root.

if you are getting login prompt then it could be of firewall blocking your ip address, or a mistranslation of IP address. The later can be checked by trying to ssh from a local system on the same network of the remote system.
0
 
LVL 19

Assisted Solution

by:simon3270
simon3270 earned 125 total points
ID: 39198066
If it is a text file, one option would be to log in to the remote machine, enter the command
   cat > required_file
Then open the local file in, for example, wordpad, select all text (Ctrl-A) and and "copy" the text to tthe clipboard (Ctrl-C).  Then paste the text into the Putty window (try right-clicking the mouse) and press Ctrl-D in the putty session to stop writing to the output file..  This will work for text files of a few tens of lines at least - you may be lucky and get it to work for longer files.

If the file is a binary one, use uuencode on the Windows machine to convert it to a text repersentation, copy that text to the unix machine as above, then uudecode on the UNIX machine to convert it back to binary.
0
 

Expert Comment

by:dougone
ID: 39209183
i would install filezilla server on the laptop..and ftp to the laptop from unix.. from command ftp x.x.x.x user password that you set up on the filezilla server and that should work
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to start Neon 20 87
Best way to split and output to csv in bash 2 61
What language/protocol is the Angular Chat? 2 57
networking details on centos 6.6 4 52
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now