1. 使用ssh的方式远程登录window server

    网上找到的方法大部分是freesshd 或者是Copsshd这样的工具

   方式就是 下载安装文件,然后服务器端进行安装:

   安装完成之后作为服务启动 然后进行setting

命令行方式(SSH or powershell )远程windows server

设置端口 设置用户:

命令行方式(SSH or powershell )远程windows server

启动服务器就可以使用 ssh进行连接

但是会出现乱码...

命令行方式(SSH or powershell )远程windows server

 

2. 第二种方式是使用powershell的方式进行远程连接, 主要是有两步:

第一步允许ps远程访问

在服务器端:

powershell执行:

Enable-PsRemoting

默认选择 Y 确定

第二部

在客户端执行命令:

Set-Item wsman:\localhost\Client\TrustedHosts -value *

允许远程访问服务器:

第三步:

powershell 执行

Enter-PSSession 10.24.88.120 -Credential administrator

输入密码既可以访问了.

其中win10的时候 需要将winrm 打开 管理员打开cmd 执行 winrm quickconfig 进行操作. 

参考:

http://www.junww.com/server/2017/0422/237.html

 

相关文章:

  • 2022-01-10
  • 2021-05-16
  • 2022-12-23
  • 2021-12-23
  • 2022-02-22
  • 2022-01-25
猜你喜欢
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2021-05-29
  • 2022-02-02
相关资源
相似解决方案