sFtp SSH Question 3 : PPK key to openssh key

xuanbao · · 46 次点击    
<p>Hi all!</p> <p>I know it&#39;s more of a SSH related question, but I don&#39;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&#39;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>
46 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传