從伺服器端下載檔案到本機端 - Linux

Table of Contents

通常要從伺服器端下載檔案, 不是用sftp就是scp:

user@local_host$ scp user@remote_host:my_file .

假設已經ssh到伺服器端了, 有沒有更簡潔的指令能把檔案傳到本機端?

user@local_host$ ssh user@remote_host
Welcome to remote_host!
user@remote_host$ ssh_get my_file .
user@remote_host@ exit
logout
Connection to remote_host closed.
user@local_host$ ls
my_file

有類似ssh_get, ssh_put這種指令嗎?

--

All Comments

Suhail Hany avatarSuhail Hany2011-07-04
從遠端scp自己?
Regina avatarRegina2011-07-08
打你自已機器的hostname或ip 若想少打一些字 就用個alias
或 shell script等
Linda avatarLinda2011-07-08
檔案都只是資料串流,ssh只是個連線方式,讀過來即可
Olive avatarOlive2011-07-09
不知lftp有沒有辦法...
Rachel avatarRachel2011-07-13
找到了,哈,參考以下網址
http://c9s.blogspot.com/2007/09/lftp-sftp.html
$ lftp sftp://account@host -p [port]
Andy avatarAndy2011-07-17
因為資安問題的考量,lftp的目的在於拿與放資料呀
Ida avatarIda2011-07-17
資料流方式 ssh xxx@yy "cat zzz.xyz" > zzz.xyz 了解?