我通过SFTP将我的Laravel项目推到了OVH服务器上。
现在我试图在ssh连接上使用命令行,但是有些东西不起作用,看起来我在文本编辑器中。当我尝试命令时,连接将关闭。
PS C:\Windows\System32> ssh xxxxx
Enter passphrase for key 'C:\Users\xxx/.ssh/id_rsa_xxx':
Welcome to OVH
pwd
ls
Connection to ssh.cluster0xx.hosting.ovh.net closed.
我错过了什么?
我在Linux上工作,所以在Windows上开发对我来说
注意:我看到了这个,但它帮不了我。
我已经在tortoise SVN PC上安装了Windows 7,我的存储库在Windows 7服务器上。我使用PUTTYGEN创建了私钥和公钥,并在authorized_keys文件中保存了公钥,并使用PAGEANT添加了私钥。
以前,所有这些都是正确的,tortoise SVN工作正常,但是现在我想使用以下命令从服务器签出项目时出现了一些错误:
svn+ssh://user@x.x.x.x/...
错误:
Unable to connect to a repository at URL 'svn+ssh://user@x.x.x.x'
T
我使用免费的开发人员许可证(裸硬件)安装了RHEL8.2,它看起来像是安装了sshd,默认情况下运行时端口22已经打开,我不需要做任何事情来安装sshd或打开端口。
[root@<hostname> etc]# systemctl status sshd
● sshd.service - OpenSSH server daemon
Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; vendor preset: enabled)
Active: active (running) since Mo
OpenSSH支持使用证书颁发机构对用户密钥进行签名。来自man ssh-keygen:
ssh-keygen supports signing of keys to produce certificates that may
be used for user or host authentication. Certificates consist of a
public key, some identity information, zero or more principal (user
or host) names and a set of options that are signe
我最近设置了一个新的GitLab docker容器,尽管其他一切都运行得很好,但我无法通过ssh对其进行身份验证。
我完全按照的指示去做,但没有成功。无论我生成什么密钥类型,也不管客户机是什么(Linux、Windows git-bash),服务器都会立即拒绝公钥,并且不会提示输入密码。
调试显示以下内容:
debug1: Offering public key: /c/Users/[user]/.ssh/id_ed25519 ED25519 SHA256:[SHA-256]
debug3: send packet: type 50
debug2: we sent a publickey
所以我得到了一个VPS,我正在尝试SSH,但是我一直被拒绝错误。
Permission denied (publickey,password).
这是我的配置文件。
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#
我的/etc/ssh/ssh_config如下所示
# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
我使用官方教程中的客户端代码进行直接和反向端口转发:
此代码在将客户端连接到Ubuntu16.10上的OpenSSH服务器时运行良好,即实现了直接和反向端口转发。
但是,考虑使用以下调用的反向端口转发(web_server())客户端代码:
ssh_channel_listen_forward()
ssh_channel_accept_forward()
使用我自己的libssh服务器,问题是客户端在调用ssh_channel_accept_forward()时超时,并显示以下错误消息:
"No channel request of this type from server"
我使用OpenSSH 6.9p1 (在Lubuntu上)作为我的SSH服务器。当试图连接到它(使用Cygwin中的SSH客户端)时,我一直被恢复为密码身份验证,尽管正确地生成了我的密钥,将它们放在服务器上的授权密钥文件中,检查权限等等。
因此,我在/var/log/auth.log中查看服务器的内容。我发现这个:
Nov 1 09:50:10 er-thinkpad sshd[16148]: Accepted password for joeuser from 192.168.2.6 port 53325 ssh2
Nov 1 09:50:10 er-thinkpad sshd[16148
现在我正在远程机器上做一个项目。我的笔记本电脑运行Windows,而项目需要在Linux上运行,所以以这种方式测试更容易。
我正在通过SSH over Visual Studio Code ()进行编码。我刚刚开始使用git并使用SSHing,但是我想开始在这个项目中使用一个图形用户界面客户端。有没有办法将GitKraken (或其他图形用户界面客户端)通过SSH连接到我的远程计算机,而不在本地克隆它?