如标题中所述,我想将密钥对导入Keychain Access.
我做了什么:
我要做的是:
欢迎任何建议.
有谁知道如何跨ARM编译OpenSSH?这就是我所做的:
首先,我已经下载了Zlib源代码,解压缩它,构建它并使用以下命令行安装它:
# ./configure --prefix=/usr/local/cross/arm
# make
# make install
Run Code Online (Sandbox Code Playgroud)
但是当我尝试为ARM目标板编译OpenSSH时,它会在此./configure过程中给出错误"zlib missing" :
# sudo LDFLAGS=-L/usr/local/cross/arm/lib CC=arm-none-linux-gnueabi-gcc PATH=$PATH:/home/arishop/arm-tool-chain/arm-fsl-linux-gnueabi/bin/ ./configure --host=arm-linux --with-zlib=/usr/local/cross/arm/ --prefix=/usr/local/cross/arm/openssh
Run Code Online (Sandbox Code Playgroud) 我想将ed25519私钥(由ssh-keygen命令生成)转换为ppk文件.但我得到了错误.
无法加载私钥(无法识别的密码名称)
有人能帮我吗?
测试openssh版本:OpenSSH_7.6p1, OpenSSL 1.1.0g 2 Nov 2017和OpenSSH_7.6p1, OpenSSL 1.0.2n 7 Dec 2017(在CoreOS和ArchLinux docker容器上)
测试腻子版本:0.70 64bit,0.70 32bit和snapshot(在Windows 10)
我的程序如下.
# ssh-keygen -t ed25519 -a 100
Generating public/private ed25519 key pair.
Enter file in which to save the key (/root/.ssh/id_ed25519):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_ed25519.
Your public key has been saved in /root/.ssh/id_ed25519.pub.
The key …Run Code Online (Sandbox Code Playgroud) 我已经为windows安装了openssh,当我运行时,ssh localhost我得到了
C:\ Users\gary/.ssh/config上的所有者或权限错误
我看了这两个问题https://superuser.com/questions/348694/bad-owner-or-permissions-error-using-cygwins-ssh-exe和https://serverfault.com/questions/253313/ ssh-returns-bad-owner-or-permissions-on-ssh-config但是没有一个答案适合我.sshd作为本地系统用户作为服务运行.我已经运行chmod 0600 C:\Users\gary\.ssh\config和chown gary C:\Users\gary\.ssh\config.我也通过运行setfacl -b C:\Users\gary\.ssh\config然后chmod 0600 C:\Users\gary\.ssh\config再次清除ACL .我也尝试将所有者更改为SYSTEM并得到了同样的错误.
我不知道还能做什么,我的设置有什么问题吗?我也安装了git安装了mingw,我从我的git安装中删除了ssh和sshd,所以它们不会在我的路径上.
我运行的其他命令是
icacls "C:\Users\gary\.ssh\config" /setowner gary
chown -R gary:1049089 C:\Users\gary\.ssh
ls -la C:\Users\gary\.ssh\config 节目
-rw-r - r-- 1 gary 1049089 229 Jan 3 14:43'C:\ Users\gary.ssh\config'
它甚至在将所有者更改为SYSTEM后仍然显示此内容,但在文件资源管理器中的文件属性中,它将SYSTEM显示为所有者
我想访问(克隆/推/拉)私有(通过ssh)git存储库,而后面只允许http代理访问的企业防火墙.我编写了一个强大的Java(守护程序)程序(基于JSCh类库),这将允许我利用本地和远程端口转发,我希望利用这一点,但当我试图设想如何设置时,我的大脑会受伤.
git repo depot(硬币短语)位于foo.server.com/var/git,因此设置克隆的自然倾向,忽略了fireall,将是:
$ git clone ssh://foo.server.com/var/git/myrepo.git
Run Code Online (Sandbox Code Playgroud)
但防火墙会阻止此命令.我倾向于尝试类似的东西
$ git clone ssh://localhost:8022/var/git/myrepo.git
Run Code Online (Sandbox Code Playgroud)
localhost:8022转发到foo.server.com:22
这条道路值得追求吗?有没有更安全的解决方案?我应该注意哪些陷阱或陷阱?
这是来自Windows家伙的新手问题,但是当我使用Git或其他依赖(Open)SSH的软件时,我应该为每个工作站生成一个新的SSH密钥,然后将公钥上传到GitHub/BitBucket等,或者我应该重用一些以前生成的?或者它是否重要?
我正在尝试ssh登录到我的远程服务器.但每当我尝试使用ssh命令登录终端时:
ssh root@{ip_address}
Run Code Online (Sandbox Code Playgroud)
我收到错误:
Connection closed by {ip_address}
Run Code Online (Sandbox Code Playgroud)
我检查了主机拒绝和主机允许,文件中没有任何内容.我不知道为什么会这样?
它发生在我改变我的工作站和密钥改变了.当我尝试ssh登录时,它要求添加密钥,我输入yes然后它关闭了连接.
有没有办法再次与ssh联系?
非常感谢您的帮助.
谢谢.
编辑:
输出ssh -v -v -v -v root @ {ip_address}是
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to {ip_address} [{ip_address}] port 22.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/home/mona/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /home/mona/.ssh/id_rsa type 1
debug1: Checking blacklist file …Run Code Online (Sandbox Code Playgroud) 我尝试通过以下命令行启动 opensshd 应用程序:net start opensshd 但在 CMD 中按 Enter 后我遇到以下消息:
Run Code Online (Sandbox Code Playgroud)The OpenSSH Server service is starting. The OpenSSH Server service could not be started. A system error has occurred. System error 1067 has occurred. The process terminated unexpectedly.
我安装了openssh。请帮我!
Windows 10上最近的OpenSSH测试版不接受我的openssh格式化私钥:
相同的密钥适用于git shellgithub 附带的ssh .
Windows上的openssh是否有格式选项,我缺少或这是一个错误?
我OpenSSH client (Beta)在 Windows 10 上添加了这个功能,所以我可以通过运行来调用它
ssh
Run Code Online (Sandbox Code Playgroud)
在命令行上。
然而,终端窗口(以及连接)在不活动时间过长时会冻结。我知道我会通过编辑~/.ssh/config文件在 Linux 上解决这个问题。在 Windows 上有等价物吗?