Solved

Copy a file from laptop to UNIX using putty?

Posted on 2013-05-24
8
767 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
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
 
LVL 29

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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.

729 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