ssh傳檔問題 - Linux
By Audriana
at 2017-11-26T12:55
at 2017-11-26T12:55
Table of Contents
若我想從伺服器傳檔案回來
指令該如何下?
假設如下
本機IP:1.1.1.1
伺服器ip:2.2.2.2 -p 24
用戶名稱:username
伺服器檔案位置:home/aaa/test.h5
傳回來本機的位置:home/bbb/
我嘗試過
scp [email protected]:aaa/test.h5
得到回應爲
Cannot to host 2.2.2.2 port 22;connection timed out
又試了
scp -p 24 [email protected]:aaa/test.h5
得到回應爲
Cannot stat “24”;No such file or directory
請問ssh該如何指定port呢?
請求大大解答QAQ
--
指令該如何下?
假設如下
本機IP:1.1.1.1
伺服器ip:2.2.2.2 -p 24
用戶名稱:username
伺服器檔案位置:home/aaa/test.h5
傳回來本機的位置:home/bbb/
我嘗試過
scp [email protected]:aaa/test.h5
得到回應爲
Cannot to host 2.2.2.2 port 22;connection timed out
又試了
scp -p 24 [email protected]:aaa/test.h5
得到回應爲
Cannot stat “24”;No such file or directory
請問ssh該如何指定port呢?
請求大大解答QAQ
--
Tags:
Linux
All Comments
By Margaret
at 2017-11-27T14:56
at 2017-11-27T14:56
By Caroline
at 2017-12-01T12:48
at 2017-12-01T12:48
By Kama
at 2017-12-04T15:53
at 2017-12-04T15:53
By Lydia
at 2017-12-04T18:00
at 2017-12-04T18:00
By Rae
at 2017-12-09T03:29
at 2017-12-09T03:29
By Harry
at 2017-12-10T23:35
at 2017-12-10T23:35
By Rosalind
at 2017-12-12T16:19
at 2017-12-12T16:19
By Hamiltion
at 2017-12-12T19:01
at 2017-12-12T19:01
Related Posts
關於CentOS 7的Firewall與iptables
By Irma
at 2017-11-24T13:11
at 2017-11-24T13:11
解除所有防火牆的指令?
By Olive
at 2017-11-23T20:01
at 2017-11-23T20:01
用Grub如何設定從指定磁區boot
By George
at 2017-11-23T13:23
at 2017-11-23T13:23
怎樣讓USB隨身碟被指定為 sda , 而非sdb
By Sierra Rose
at 2017-11-23T11:33
at 2017-11-23T11:33
筆電選擇
By John
at 2017-11-21T14:25
at 2017-11-21T14:25