使用Windows ssh连接到另一个窗口


-2

有没有办法使用ssh连接,从一台带窗户的电脑到另一个窗户?,我在PC上有一个用户A和另一个用户B,我尝试使用从B连接到A.

ssh [user-a] @ [主持人]

然而,当输入凭据时,这些不被接受,并且与几个用户一起探测,并查找有关它的信息但是我找不到答案,我不知道我是否遗漏了什么,因为当我连接远程桌面时,我没有任何问题。

编辑:Windows用户在不同的计算机上,我也有ubuntu bash,我通过它们之间的连接(从ubuntu bash会话到另一个ubuntu bash会话没有问题),我想要的是从一个窗口的窗口连接到另一个,但我不确定是不是用户或密码不允许我连接,我创建了新用户,但我仍然得到错误的密码。我安装了OpenSSH并运行了sshd服务。


你安装了OpenSSH-Client和/或Server吗?
Nordlys Jeger

2
A和B在同一台计算机上吗?目前尚不清楚您是在谈论同一台计算机上的单独计算机还是单独的实例。
fixer1234

您作为SSH服务器运行的软件是什么?请记住,ssh中的用户名称区分大小写(至少在cygwin中)。
Alex

请编辑问题以将其限制为具有足够详细信息的特定问题,以确定适当的答案。 ssh user@host表示主机上的用户。
Ramhound

我试过在同一台计算机和不同的计算机上(因为在linux中我可以在同一台计算机上连接到ssh会话)
Kevin DanielMendozaVásquez9年

Answers:


0

使用putty.exe

PuTTY是用于连接Windows上的SSH服务器的最流行的应用程序。它是完全开源的,甚至可以作为便携式应用程序使用,因此您可以将其添加到便携式应用程序工具包中并在任何地方使用它。PuTTY的界面起初可能看起来有点令人生畏和复杂,但一旦开始使用它就相当简单。

与上述其他SSH客户端相比,PuTTY提供了更多功能和选项,作为Windows桌面应用程序运行。与FireSSH一样,PuTTY也提供SSH隧道功能。要使用PuTTY,您真正需要做的就是启动putty.exe,输入远程服务器的主机名(或IP地址),确保端口正确,然后单击“打开”。PuTTY将连接到服务器并提示您输入用户名和密码。如果您愿意,也可以保存此会话信息 - 单击默认设置选项并单击保存,每次打开时,PuTTY将使用您保存的设置。

所有这些选项都可在主配置窗格中找到。您可能不需要触摸任何其他选项。如果要在PuTTY中设置SSH隧道,可以在Connection - > SSH - > Tunnels下找到该选项。

你可以看看这个=> 4-easy-ways-to-use-ssh-in-windows /

对于Windows的ssh服务器,有一个名为tectia-ssh的商业应用程序

https://www.ssh.com/ssh/putty/windows/#sec-What-if-you-don-39-t-have-a-server

您可以在Windows上安装oracle Virtualbox并安装像ubuntu这样的来宾Linux。在那里很容易运行一个ssh服务器。

https://www.virtualbox.org/wiki/Downloads

安装VirtualBox和扩展包:

https://www.virtualbox.org/manual/ch01.html#intro-installing

Ubuntu页面和下载页面......... 这里

安装ssh:http//linux-sys-adm.com/how-to-install-and-configure-ssh-on-ubuntu-server-14.04-lts-step-by-step/

Step 1 – Update repositories.
root@mail:/# apt-get update
root@mail:/# apt-get upgrade

Step 2 – Install SSH Server
root@mail:/# apt-get install openssh-server

Basic Configuration

Step 3 – After installation I will show how to configure ssh server. Open ssh config file with the following command:
root@mail:/# nano /etc/ssh/sshd_config

Step 4 – If you want to change ssh port you have to find ‘Port’ line and change the number of the port. For example I will change to 22222.
Port 22222

Step 5 – I will set max login attempts to be 3. After 3 wrong login attempts you will disconect. This is very important for security of your server and this can be used for prevention from brute force attack (see my Theme 4). Add this line bellow Port:
MaxAuthTries 3

Step 6 – Allow certain users to login on your server and deny all other users. I will add ‘zimbra’ users because my Zimbra Mail Serve should have access. For more information about Zimbra Mail Server configuration read theme 12. Add the following line at the end of the file and after that save the file /etc/ssh/sshd_config.
AllowUsers mslavov zimbra

Step 7 – Restart ssh service with the following command:
root@mail:/# service ssh restart

Now only this two users will have access to your server.

-------------------------------------------------- ---------------------------

在putty页面上有一个免费的ssh-server名称bitvise-server,我没有尝试过但是可以解决这个问题......... https://www.putty.org/

https://www.bitvise.com/ssh-server-download

Bitvise SSH服务器:Windows屏幕截图的安全文件传输和终端shell访问

我们的SSH服务器支持从Windows XP SP3和Windows Server 2003到最近的Windows 10和Windows Server 2016的所有桌面和服务器版本的Windows,32位和64位。

Bitvise SSH Server支持以下SSH服务:

Secure remote access via console (vt100, xterm and bvterm supported)
Secure remote access via GUI (Remote Desktop or WinVNC required)
Secure file transfer using SFTP and SCP (compatible with all major clients)
Secure, effortless Git integration
Secure TCP/IP connection tunneling (port forwarding)

您可以无风险地试用Bitvise SSH Server。首先,只需下载安装可执行文件 - 您将在我们的下载页面上找到下载链接。安装后,您可以自由评估Bitvise SSH服务器最多30天。如果您决定继续使用它,请购买许可证。

在安装过程中选择个人版本时,非商业个人用户可以免费使用Bitvise SSH Server。


我知道使用putty我可以连接到会话ssh,我一直用它从windows连接到linux,但是我无法使用putty或任何工具连接到从windows到windows的会话。
Kevin DanielMendozaVásquez

@KevinDanielMendozaVásquez看到我的更新
somethingSomething

我不需要安装virtualbox,我知道我可以很容易地从一个windows连接到linux,问题是我想用一台带有windows的电脑连接到另一台带有ssh的windows。
Kevin DanielMendozaVásquez

@KevinDanielMendozaVásquez看看答案的结尾bitvise-ssh服务器免费用于非商业用途
somethingSomething

我会尝试一下,但是我已经安装了openssh服务器。
Kevin DanielMendozaVásquez
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.