您的位置:首页 > 运维架构 > Linux

小白教你使用Linux(centos)阿里云 第一步WIN10如何登陆远程centos服务器

2020-02-12 23:23 176 查看

win10下如何远程登陆:
打开window设置→打开应用→点击管理可选功能→点击添加功能添加ssh服务端和客户端→重启Windows→cmd输入ssh测试。

如果出现以下内容,代表链接成功!

[code]C:\Users\40291>ssh
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
[-i identity_file] [-J [user@]host[:port]] [-L address]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] destination [command]

远程链接1:默认端口22

[code]ssh username(用户名)@hostip(主机ip),

如果是更改了端口,使用以下方法:

[code]ssh -p port username@hostip

阿里云服务器第一次登陆成功后显示如下内容:

[code]C:\Users\40291>ssh root@47.105.**.**
The authenticity of host '47.105..**.** (47.105..**.**)' can't be established.
ECDSA key fingerprint is SHA256:ZWYSnprsWbD+wK3v6J9rZ3bp6Rvk56xj25m2ovEjm9Q.
Are you sure you want to continue connecting (yes/no)?

输入YES后会提示输入密码,,第二次登陆就不会再次输入”yes“提示了,输入密码的时候系统不做显示。输入密码内容如下:

[code]root@47.105.**.**'s password:
Welcome to Alibaba Cloud Elastic Compute Service !

Activate the web console with: systemctl enable --now cockpit.socket

Last failed login: Wed Jan  1 21:28:55 CST 2020 from 68.183**.** on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Jan  1 20:26:46 2020 from 27.212.**.**

Welcome to Alibaba Cloud Elastic Compute Service !

Activate the web console with: systemctl enable --now cockpit.socket

Last failed login: Wed Jan  1 21:28:55 CST 2020 from 68.183.**.** on ssh:notty
There was 1 failed login attempt since the last successful login.
Last login: Wed Jan  1 20:26:46 2020 from 27.212.**.**

其中上文中SHA256后面的内容是您本机的识别西哈值,如果您的系统发生了重装或者重大变更,这个算法值就会改变?

那么,就删除C盘用户文件夹里面的SSH文件夹中的文件即可。比如我的文件在C:\Users\40291\.ssh,清空这个文件夹后登陆会提示你再次输入"YES"。

  • 点赞
  • 收藏
  • 分享
  • 文章举报
淄博猛子 发布了2 篇原创文章 · 获赞 0 · 访问量 47 私信 关注
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐