Solved

Tranfer File within a  SSH session from Windows-> Linux

Posted on 2006-06-29
6
660 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
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

747 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

14 Experts available now in Live!

Get 1:1 Help Now