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

Jessica avatar
By Jessica
at 2011-07-03T10:59

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這種指令嗎?

--
Tags: Linux

All Comments

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

Linux上好用的影音轉檔軟體

Catherine avatar
By Catherine
at 2011-07-03T00:33
今天光是把某幾個mkv跟ogm檔轉成flv, 就弄到累死人 檔案格式不同, 使用的軟體也不一樣 例如想擷取ogm檔的字幕 要先裝ogmtools套件 用ogminfo指令察看ogm檔的字幕檔的serial number 再用ogmdemux指令把字幕取出來 若想處理的檔案是mkv 要先裝mk ...

華碩全新Eee PC將搭載Ubuntu作業系統

Edward Lewis avatar
By Edward Lewis
at 2011-07-03T00:23
: → itsasemen:但ubuntu要有出色的效能?我看還要有很長遠的路要走 07/02 23:04 這個....Phoronix的測試並不是這樣歐.... http://www.phoronix.com/scan.php?page=articleandamp;item=windows_ub ...

華碩全新Eee PC將搭載Ubuntu作業系統

Liam avatar
By Liam
at 2011-07-02T22:26
http://www.eettaiwan.com/ART_8800644138_876045_NP_2da6cf48.HTM 華碩全新Eee PC將搭載Ubuntu作業系統 Linux 桌上作業系統 Ubuntu 的企業贊助商 Canonical 稍早前宣佈, Ubuntu 現已可預 先搭載於華碩新款 E ...

檢查密碼時變特別久

Connor avatar
By Connor
at 2011-07-02T21:34
管理一台centos 5,前天開始發生一件怪現象 就是當ssh login或ftp login時,輸入密碼之後都要楞好一陣子才能建立連線 這之前並沒有做什麼特別的安裝或調整 有人知道問題之所在嗎 謝謝 - ...

size of "void *"

Blanche avatar
By Blanche
at 2011-07-02T20:42
主要是想把apache porting到達文西上 用的distribution是fedora 8 但是在下configure的時候 出現了下面這個error configure: error: Size of and#34;void *and#34; is less than size of and# ...