远程访问另外一台机器

一、远程登录指令

shellssh 192.168.1.108

Linux实现

[root@localhost ~]# ssh 192.168.1.108
root@192.168.1.108's password:
Permission denied, please try again.
root@192.168.1.108's password:
Last failed login: Thu Apr 30 15:38:59 CST 2015 from 192.168.1.108 on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Thu Apr 30 14:38:25 2015 from 10.10.21.187

二、进入文件所在目录

[root@Server120 ~]# cd /home/maraidb/

三、远程拷贝文件

[root@Server120 mariadb]# scp backup.sql root@192.168.1.108:/home/sakila
root@192.168.1.108's password:
backupCT.sql 100% 2949MB 11.2MB/s 04:23

到此就可以了!


Herylee
915 声望14 粉丝

做最真实的自己


引用和评论

0 条评论