Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 713
  • Last Modified:

Tranfer File within a SSH session from Windows-> Linux

Hi,

I am trying to send while from my windows xp to a linux.

let say I have a file called "test.txt" in my windows folder, same location as my ssh client.
The I run the ssh client and connection to the linux system.  Next, I want to tranfer the file "test.txt"
to the linux machine.  I tried it with scp, but it doesn't work (maybe I need some example on this),
also, I don't want to FTP, or sFTP, I just want to done it inside a ssh session.  Thanks.
0
huabin
Asked:
huabin
1 Solution
 
PsiCopCommented:
SFTP and SCP *are* doing it "inside an ssh session".

Are you certain that the Linux host is not configured to disallow file transfer?
0
 
AutogardCommented:
What Windows SSH client are you using?

On Linux an SCP command goes like "scp file remoteuser@remoteip:/remotefolder", but this will be different on Windows depending on which ssh client you are using.
0
 
pjedmondCommented:
From Windows xp to linux:

Using Putty:

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

Download pscp

Command required:

pscp myfile user@myserver:/path/to/dir/

(   (()
(`-' _\
 ''  ''
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
ahoffmannCommented:
> .. I just want to done it inside a ssh session.
you do not do it within a session but with its own session using scp
Assuming that you have ssh and scp, you simply do:

  ssh test.txt user@remote-server:
or
  ssh test.txt user@remote-server:/path/to/dir/copied-test.txt
0
 
ahoffmannCommented:
oops, that has already been said ...
0
 
xDamoxCommented:
Hi,

I would recommend you download WinSCP for your Windows XP machine which, will allow you
to transfer files via SSH:

http://winscp.net/eng/index.php

0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now