如何進行遠程鏈接

(1)使用scp 文件名 用戶名@IP地址:~ 就可以了!這樣就可以實現遠程鏈接將自己的文件放到對方的電腦中
例如:wzy@wzy-Desktop:~/桌面$ scp gspcav1-20071224.tar.gz [email protected]:~
[email protected]'s password:
(2)如何通過操縱對方的PC 將對方的文件拷貝到自己的PC上:
 
先用ssh將對方的主機進行pin一下轉到對方的主機上,然後在將所要拷貝的東西拷貝到自己的主機上:
注意“~”代表的是你所要拷貝的文件將要被存放的目錄
例如:
ssh 192.168.3.52(對方主機)
wzy@wzy-Desktop:~$ ssh [email protected]
[email protected]'s password:

Linux xixi-desktop 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux
Ubuntu 10.04 LTS

Welcome to Ubuntu!
 * Documentation:  https://help.ubuntu.com/

450 packages can be updated.
194 updates are security updates.

Last login: Fri Jul 22 11:18:54 2011 from lost-desktop.local
fanying@xixi-desktop:~$ ls(對方主機的信息)
Desktop                  hs_err_pid4991.log                          模板
EIOffice                 hs_err_pid5016.log                          視頻
EIOfficelog.txt          linux                                       圖片
EIOffice_Personal_Lin    linux-kernel                                文檔
examples.desktop         pipe                                        下載
gspcav1-20071224.tar.gz  tmp                                         音樂
hs_err_pid1848.log       VMware-Workstation-6.5.0-110068.i386.rpm    桌面
hs_err_pid1950.log       VMware-workstation-e.x.p-91182.i386.tar.gz
hs_err_pid4736.log       公共的
fanying@xixi-desktop:~$ scp EIOfficelog.txt [email protected]:~(輸入自己的主機)
[email protected]'s password:
EIOfficelog.txt                               100%   34KB  33.7KB/s   00:00   (代表拷貝成功)



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章