It is my understanding that JSch implements the IETF protocol
standard very strictly. And the sftp protocol standard
tries exactly to get you away from having to know what
OS name or version is running remotely -- since the protocol
should be standardized and the same across all OS names
You could look up Sftp on Wikipedia, and the Wikipedia
References will bring you to the official protocol standard
discussion on IETF:
The standard RFC is now at version 13, but it is my understanding
that there are practically no servers out there in the wild which
implement the latest standard revisions -- v3 (!) seems to be the
most widely used revision if I'm not mistaken.
The protocol does give support for querying the protocol revision
that the server supports, and it does give you a String identifying
the remote server software (e.g.
"Remote protocol version 1.99, remote software version OpenSSH_3.9p1"
You can see that version String under "debug1" if you use a
commandline client, e.g.
sftp -vv myhost
That would be the SSH Server's version, the sftp protocol version
can be seen with "debug2:" later in the log:
" debug2: Remote version: 3"
Hope that helps,
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
> -----Original Message-----
> From: jsch-users-bounces@...
> [mailto:jsch-users-bounces@...] On Behalf
> Of srikanth k.m
> Sent: Friday, August 22, 2008 10:23 AM
> To: jsch-users@...
> Subject: [JSch-users] (no subject)
> Hi all,
> I am trying to check if there is any way by which we can get the
> Operating system name of the machine where the SFTP server is running.
> FTP Protocol provides a method getSystemName() that returns the OS
> name. Is there something similar for SFTP too?
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> Build the coolest Linux based applications with Moblin SDK &
> win great prizes
> Grand prize is a trip for two to an Open Source event
> anywhere in the world
> JSch-users mailing list