scp 远程拷贝文件

远程访问另一台机器sql

1、远程登陆指令

shellssh 192.168.1.108

Linux实现shell

[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.187ssh

2、进入文件所在目录

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

3、远程拷贝文件

[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:23io

到此就能够了!mariadb

相关文章
相关标签/搜索