Linked Questions

3 votes
1 answer
15k views

How to copy a local file when I connect using ssh [duplicate]

I connect to my remote server using SSH, and I don't enter a password during login as I have setup a SSH key already. How can I copy a file from my local laptop to my server?
user avatar
  • 263
6 votes
2 answers
9k views

How do I download a file from a host i'm already connected to over ssh [duplicate]

I'm trying to download a file from a linux server i'm already connected to. I know you can use scp to connect to and pull down a file from a host, but that requires still being on local. I could scp ...
user avatar
5 votes
1 answer
3k views

Download a file from a remote machine while SSH'd into it? [duplicate]

It often happens that I'm SSH'd into another machine and I'd like to download a file onto my local machine without having to open a new terminal and scp. For example, something like this: local $ ssh ...
user avatar
2 votes
1 answer
3k views

scp to Local Machine After SSHing [duplicate]

From my local machine I can copy files from a remote machine scp remote:/some/file/path ~ But what if I'm already SSHed into the remote machine? Can I do something like this ssh remote cd /some/...
user avatar
  • 129
0 votes
2 answers
2k views

Using something like scp but when I've logged in already [duplicate]

I want to copy a file via ssh when I've logged in. What scp does is that it copies the files by login, password, path. What I want is to be able to do the same thing when I'm "inside", ideally without ...
user avatar
  • 2,481
2 votes
1 answer
287 views

Is it possible to download to files while in a SSH interactive? [duplicate]

Here I am, poking around a remote server via SSH, and I want to find out about/read/edit/whatever a file. I don't like vi or other CMI stuff, I want to read it locally. Is there any way I can ...
user avatar
3 votes
1 answer
261 views

Transfer files client-server inside a SSH session [duplicate]

Is it possible to transfer files (client-server) from inside a ssh session?. I know how to transfer files using SCP, This question is about transference from inside a ssh session. For example I ...
user avatar
  • 377
5 votes
0 answers
320 views

Copy file over existing SSH session? [duplicate]

Possible Duplicate: SSH easily copy file to local system Let's give the following example: I've connected to ssh user@myserver.com. I need to copy a local file over to the remote server, ...
user avatar
  • 35.8k
0 votes
1 answer
123 views

Is there a command-line application that combines SSH and SFTP? [duplicate]

When I'm working on some remote host via SSH, I often need to upload or download files. With my current setup, I need to switch to another terminal and conjure up rsync or sftp, which can be a pain ...
user avatar
0 votes
0 answers
92 views

Is it possible to download a file locally when I've already ssh'ed into a remote computer? [duplicate]

Possible Duplicate: SSH easily copy file to local system Most of the remote download commands seem to involve commands like scp, which are usually used without ssh'ing first (if I recall ...
user avatar
  • 5,752
0 votes
1 answer
68 views

Trouble copying file while SSH'd into another computer to my local computer? [duplicate]

I am ssh'd into a computer. There is a file on the home directory I would like to copy to my local computer. I tried running scp readme brian@HomeLenovo:/home/Documents/cp_readme where brian@...
user avatar
  • 121
1109 votes
10 answers
4.0m views

How to copy files from one machine to another using ssh

I'm using Linux (centos) machine, I already connected to the other system using ssh. Now my question is how can I copy files from one system to another system? Suppose, in my environment, I have two ...
user avatar
  • 14.5k
27 votes
3 answers
33k views

How to execute a remote command and pass in local file as input?

Is it possible to do this: ssh user@socket command /path/to/file/on/local/machine That is to say, I want to execute a remote command using a local file in one step, without first using scp to copy ...
user avatar
  • 1,330
15 votes
3 answers
43k views

How to connect through sftp to a non-standard port on Midnight Commander?

In Midnight Commander one can make an SFTP connection to a remote machine using: cd #sh:yourusername@example.com:/home/username/ How can this be done when the remote machine is using a non-standard ...
user avatar
  • 954
14 votes
3 answers
4k views

SSH: Provide additional "pipe" fds in addition to stdin, stdout, stderr

When connecting to a host with SSH, usually three "pipes" are provided between host and guest, for stdin, stdout, and stderr. Is there a command-line option to create forwards for additional file ...
user avatar
  • 507

15 30 50 per page