Solved

Tranfer File within a  SSH session from Windows-> Linux

Posted on 2006-06-29
6
695 Views
Last Modified: 2010-04-20
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
Comment
Question by:huabin
[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
6 Comments
 
LVL 34

Expert Comment

by:PsiCop
ID: 17013565
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
 
LVL 8

Expert Comment

by:Autogard
ID: 17013845
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
 
LVL 22

Expert Comment

by:pjedmond
ID: 17014164
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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 
LVL 51

Accepted Solution

by:
ahoffmann earned 500 total points
ID: 17015902
> .. 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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 17015904
oops, that has already been said ...
0
 
LVL 16

Expert Comment

by:xDamox
ID: 17016717
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

733 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