<p>Hi all!</p>
<p>I know it's more of a SSH related question, but I don't really know where to find help for this and people on this reddit seems to have good knowledge about it.</p>
<p>So my company use a .bat file to connect to a sftp.</p>
<p>I have to remake it in Golang.</p>
<p>To connect to the server via sFTP, I need to use a private key. The only private key I have, is a .ppk and is a private key generated with puTTy.</p>
<p>My issue is, with crypto/x/ssh in Golang, I can use my private key. When I try to parse it, I get key not found.</p>
<p>I tried to convert it to openssh with puttygen, but sitll doesn't work. I tried every convert type with putty.</p>
<p>Is there a way to use the putty private key with crypto/x/ssh and sftp module in golang?</p>
<p>Or Can I convert my key? Do I have to ask the server for a new key in pem format?</p>
<p>Thank you!</p>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传