Code Monkey home page Code Monkey logo

Comments (4)

Aimeast avatar Aimeast commented on August 25, 2024

请补充具体的使用场景。用的什么客户端,如何连接的,启用了什么服务。

from fxssh.

maikebing avatar maikebing commented on August 25, 2024

由于行业和采购原因, 我只能使用windows, 我想通过这个工具在我的软件集成ssh 服务端, 便于我维护护,我试图通过密钥的连接。 用的 是xshell 。

from fxssh.

Aimeast avatar Aimeast commented on August 25, 2024

FxSsh是针对Git服务端场景设计的,实现了SSH架构中的exec服务。连接xshell需要服务端提供shell服务支持,目前FxSsh还没有实现shell终端功能。

可以参考我当时写的文章了解SSH架构:http://www.cnblogs.com/Aimeast/p/4584540.html

如有兴趣,可以从这里入手,实现shell服务。

private void HandleMessage(ChannelRequestMessage message)
{
switch (message.RequestType)
{
case "exec":
var msg = Message.LoadFrom<CommandRequestMessage>(message);
HandleMessage(msg);
break;
default:
if (message.WantReply)
_session.SendMessage(new ChannelFailureMessage
{
RecipientChannel = FindChannelByServerId<Channel>(message.RecipientChannel).ClientChannelId
});
throw new SshConnectionException(string.Format("Unknown request type: {0}.", message.RequestType));
}
}

PS: exec服务和shell服务非常类似,在此基础上只用很少的代价就可实现shell服务。

from fxssh.

maikebing avatar maikebing commented on August 25, 2024

好。 感谢。

from fxssh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.