[ 
https://issues.apache.org/jira/browse/SSHD-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17484360#comment-17484360
 ] 

dgü commented on SSHD-1243:
---------------------------

Hello!

{quote}
The GitSshdSessionProcess won't help you as you'd have to create the ssh 
session and channel, it's just a thin wrapper. You just need the ChannelExec 
which will allow you to run a remote command,
{quote}

I will create required instances (session,exec channel,etc.). No problem here. 
After execution, an {{SSHProcess-like}} class is needed for my implementation.

{quote}
The reason why there's no abstraction is that you need to configure the SSH 
layer: host, port, user, password, ssh private key, host entries, ciphers, 
macs, etc... So we probably won't provide such a thing.
{quote}

I meant an abstraction in JDK level. For another case example, 
{{java.nio.file.spi.FileSystemProvider}} could be used for 
{{SFTPFileSystemProvider}}.

{quote}
And if you think you really need the GitSshdSessionProcess class, just copy it, 
rename it, and hack it to suit your needs.
{quote}

I think it would be better for {{GitSshdSessionProcess}} to be in a core jar 
since it's not Git specific. It would eliminate the dependency for sshd-git 
jar. If not, I will think of copying and renaming {{GitSshdSessionProcess}}.

{quote}
Btw, you're saying you're migrating from Jsch but afaik, it does not provide 
this kind of abstraction (for the same reason I suppose).
{quote}

As I know, there is no such abstraction in JSch. There are some 
[wrappers|https://svn.apache.org/repos/asf/pig/branches/plan/lib-src/shock/org/apache/pig/shock/SSHSocketImplFactory.java]
 for JSch on internet which extends {{java.lang.Process}}. But, to keep minumum 
dependency, I am not looking for an abstraction in 3rd party library level.

Thank you!

> is GitSshdSessionProcess class Git specific? 
> ---------------------------------------------
>
>                 Key: SSHD-1243
>                 URL: https://issues.apache.org/jira/browse/SSHD-1243
>             Project: MINA SSHD
>          Issue Type: Question
>    Affects Versions: 2.8.0
>            Reporter: dgü
>            Assignee: Guillaume Nodet
>            Priority: Major
>
> Hello!
> {{is org.apache.sshd.git.transport.GitSshdSessionProcess}} class Git specific 
> ?
> Is there a generic SSHD class extending java.lang.Process ?
> Thanks in advance!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to