linux - scp-ing while ssh'd into remote machine? -


my desire:

ssh remote machine, take peak around, , copy file from remote machine local machine using linux command.

my frustration:

from i've seen in documentation, can't ssh'd while using scp command. must user on local machine , specify the connection info , file location (ie. scp user@remotehost:copyfrom.txt /mydir/copyhere.txt).

i alternatively use sftp:

$ sftp user@remotehost $ $ remotefile.txt /mylocaldir/localfile.txt 

but sftp isn't quite fast ssh.

is possible use scp while sshd remote machine?

no, not possible, if don't have public ip , sshd server running on workstation (if have, there nothing easier run scp file localmachine: remote session).

the speed not significant. can 1 or 2 percent on large files, using sftp, gain more, because not have initiate ssh connection each scp command, once , every get command "cheaper". normal files on normal network not notice difference.


Comments

  1. I am trying the same but when i exit my putty session or putty session gets closed due to timeout, it stops scping. Also i do not see any jobs once i re-login. But if i do "ps -ef|grep scp" i can see the scp process there but it is hung as it is not scping anything.

    Any suggestion in this case please ?
    linux scp

    ReplyDelete

Post a Comment

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -