title: SFTP: how to know if i'm connecting to a unix or windows host?
body: <p>i have created an internal library to make generic FTPs or SFTPs using apache-commons and JSCH libs</p>
  
  <p>When i upload text files from windows to unix i can switch to ASCII mode if i'm using FTP, but this is not posible with SFTP protocol, so i make a custom inputstream reader which take care of the CRLF vs CR windows/unix end line problem.</p>
  
  <p>Now my concern if  there is a method to know if the SFTP host is Windows or Unix, in which case i encapsulate the FileInputStreamReader whith my custom Windows2UnixInputStreamReader.</p>
  
  <p>Do you know a methos to know the SO of the host? preferably if solution is througth the FTP/SFTP connection</p>