scp 1.txt root@192.168.1.25:/tmp
The authenticity of host '192.168.1.25 (192.168.1.25)' can't be established.
RSA key fingerprint is 6c:28:23:df:45:d5:c8:79:4d:9e:ed:f6:f2:73:22:4c.
Are you sure you want to continue connecting (yes/no)?
提示输入yes后,屏幕不断出现y,只有按ctrl + c结束
错误是:The authenticity of host 192.168.1.xxx can't be established.
执行ssh -o StrictHostKeyChecking=no 192.168.1.xxx 就OK
然后
在一,在linux100主机里的用户
运行
#ssh-keygen -t rsa
结果如下
QUOTE:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/.username/ssh/id_rsa):#回车
Enter passphrase (empty for no passphrase):#回车
Enter same passphrase again:#回车
Your identification has been saved in /home/.username /.ssh/id_rsa.
Your public key has been saved in /home/.username /.ssh/id_rsa.pub.
The key fingerprint is:
38:25:c1:4d:5d:d3:89:bb:46:67:bf:52:af:c3:17:0c username@localhost
Generating RSA keys:
Key generation complete.
会在用户目录~/.ssh/产生两个文件,id_rsa,id_rsa.pub
二,把linux100主机上的id_rsa.pub文件拷贝到linux200主机的root用户主目录下的.ssh目录下,并且改名为authorized_keys
即:
/root/.ssh/authorized_keys
如果已经有authorized_keys这个文件,将id_rsa.pub的内容拷贝到 authorized_keys文件中。cat id_rsa.pub >> authorized_keys 便可以。
相关推荐
Exynos 4412 SCP_Users Manual_Ver.0.10.00_Preliminary0.rar 三星4412SCP用户手册。
[root@node1 ~] iscsiadm -m discovery -t st -p 192.168.10.10 (存储地址) 192.168.10.10:3260,1 iqn.2012-09.com.example:server.target4 [root@node1 ~]#iscsiadm -m node -T iqn.2012-09....
本文为大家分享了linux服务器之间传输文件的四种方式,供大家参考,具体内容如下 1. scp 【优点】简单方便,安全可靠;支持限速参数 ...scp /home/work/source.txt work@192.168.0.10:/home/work/ #把本地的so
GPC_2.3_D_SCP03_v1.2_PublicRelease.pdf
SEC_Exynos 4412 SCP_Users Manual_Ver.0.10.00_Preliminary SEC_Exynos 4412 SCP_Users Manual_Ver.0.10.00_Preliminary
海上SCP工法设计及施工手册译文.docx
SCP模型论企业经济策略运用.doc
python库。 资源全名:PyUpdater-SCP-Plugin-3.0.2.tar.gz
Renci.SshNet.dll及其文档和实现SSH、SCP、FTP等操作的小例子
资源来自pypi官网。 资源全名:nc_scp_api-0.0.4.tar.gz
linux下scp命令详解主机之间拷贝文件.docx
SystemC与SCP结合仿真多处理器嵌入式系统.pdf
6、winscp界面中,右边第一个框填上路由的地址192.168.1.1,中间那行的第一个框填登录的名字(root),旁边的框填登录的密码(刚才你设置DD的那个)。在最下面的协议里点选SCP,然后点连接,会提示两次错误,都按确定...
java调SCP java调SCP.rarjava调SCP.rar
【IT十八掌徐培成】Hadoop第02天-02.scp-rsync-ssh root配置.zip
深信服信云sCloud_SCP用户手册_V6.2.60.pdf
winrar-x64-602scp.exe安装包
Copy the distribution file to the ESXi host datastore using scp or some other data transfer system. Decompress the file from the ESXi console or via SSH: tar xzvf esxi-unlocker-xxx.tgz (xxx - will be...
Linux 基础 54-远程管理命令-13-scp在Mac终端中的演示.flv