回复:how could I use go.crypto/ssh implement ssh proxy function

26 views
Skip to first unread message

一生悬命

unread,
Jan 21, 2014, 11:39:57 PM1/21/14
to liuyanglong2137, golang-nuts
 
------------------
 


------------------ 原始邮件 ------------------
发件人: "liuyanglong2137";
发送时间: 2014年1月22日(星期三) 中午12:32
收件人: "golang-nuts";
抄送: "一生悬命";
主题: how could I use go.crypto/ssh implement ssh proxy function

My usage scenario is this:
    I have many A type server names as "A1","A2","A3", and one B type server , and have many 'C' type server names as "C1""C2""C3".
    when I ssh use openssh from A as command "ssh a...@B.com " or “ssh d...@B.com”, then the ssh will link to C1 or C2 through B. 
     Only use PublicKey/PrivateKey for SSh Cert Type 
     only B knows which "C" type server the "user" want to ssh, the relation is stored in B`s mysql. when "user" ssh to B server , the "SSh Proxy" will search the goal C type server , and the "user" will as a common new user "god" on C type servers.
so ,above is my requirement. And I want to use go.crypto/ssh to implement the "Proxy server" and this Proxy will install in B Server. So as a client in A type server , client will not notice this "Proxy server".  
   Thank you for help.

29B47ED0@10939E0C.9D4BDF52.png
Reply all
Reply to author
Forward
0 new messages