栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

windows cmd使用ssh连接Linux已经文件上传

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

windows cmd使用ssh连接Linux已经文件上传

CMD连接服务器命令(47.102.144.221 为服务器 IP)

ssh root@47.102.144.221

文件上传(scp 后面参数为本地文件地址 , 47.102.144.221 为服务器 IP, 冒号后面指 将文件上传到服务器哪个目录下)

scp D:index.txt root@47.102.144.221:/server/tmp

如何要从服务器下载文件 还是使用scp命令如下:

scp root@47.102.144.221:/server/tmp/index.txt D:

如下图:

如果连接 ssh 出现如下提示:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:AGHOfHIMAAhNrmTq6XsWnKxbNZco4UiovRyG50CN+Wk.
Please contact your system administrator.
Add correct host key in C:\Users\13160/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\Users\13160/.ssh/known_hosts:2
ECDSA host key for 47.102.144.221 has changed and you have requested strict checking.
Host key verification failed.

执行 ssh-keygen -R 47.102.144.221 删除本地密钥即可

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/974489.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号