Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/280.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过ssh从redhat linux客户端连接到windows server 2003_Linux - Fatal编程技术网

通过ssh从redhat linux客户端连接到windows server 2003

通过ssh从redhat linux客户端连接到windows server 2003,linux,Linux,我想从red hat Linux客户端远程连接windows server 2003。我知道Linux有SSH,但windows没有。那有什么办法吗。当然 只需在win机器上安装cygwin,并在安装程序include SSH包中启用SSH 之后,您可以从Linux机器ssh到win机器 享受我为自己写了一个关于在Cygwin上安装sshd的小提示。 请看和 首先安装cygwin。 见cygwin.com。按照安装说明进行操作。我建议采取以下措施: Install from Internet A

我想从red hat Linux客户端远程连接windows server 2003。我知道Linux有SSH,但windows没有。那有什么办法吗。

当然

只需在win机器上安装cygwin,并在安装程序include SSH包中启用SSH

之后,您可以从Linux机器ssh到win机器


享受

我为自己写了一个关于在Cygwin上安装sshd的小提示。 请看和

首先安装cygwin。 见cygwin.com。按照安装说明进行操作。我建议采取以下措施:

Install from Internet
All Users
Use IE5 Settings
Select a mirror near you (if you can find out where they are!)
除基本软件包外,确保选择以下软件包:

cygrunsrv
openssh
您可以将Windows用户列表导出到Cygwin

$ cp /etc/passwd /etc/passwd.old    # backup for safety
$ mkpasswd > /etc/passwd
启动sshd 接下来,在Windows上启动Secure Shell守护程序sshd服务

这将允许远程计算机上的用户登录到您的邮箱,获得一个交互式shell并执行任何他们想要的操作。或者更确切地说,不管你允许他们做什么。记得吗

有一本很好的指南,里面有很多疑难解答信息

简而言之。启动Cygwin Shell窗口

$ ssh-host-config -y
当提示输入“CYGWIN=”时,键入“tty ntsec”

我不允许使用密码登录,只允许使用公钥方法。见下文。因此,将/etc/sshd_config中的相关行更改如下:

PubkeyAuthentication yes

# To disable tunneled clear text passwords, change to no here!
PasswordAuthentication no
最后启动服务:

$ cygrunsrv --start sshd
使用公钥身份验证管理用户 foo希望远程登录到您的邮箱的bar帐户。 他以任何方式向您发送他的公开RSA密钥id_RSA.pub,包括电子邮件、钢笔驱动器,以及您信任的任何方式。 如果您发现foo Worth,您将授权他的密钥,从那时起,他将能够通过ssh登录到您的bar帐户,而无需键入bar的密码:

$ cat id_rsa.pub >> /home/bar/.ssh/authorized_keys

连接后您想做什么?如果您想使用SSH进行连接,则需要运行SSH服务器。虽然这在理论上可以回答这个问题,但请在此处包含答案的基本部分,并提供链接以供参考。我没有投你反对票,但那是我的猜测。此外,这个问题对于网站来说是相当离题的,这可能也没有什么帮助。