Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
What is a good SSH server to use on Windows?

Can anyone on the SF community recommend a trustworthy/easy to set up SCP server for windows. I do not want to go through the trouble of setting up Cygwin but I have a need for running SCP on Windows.

As a summary, our networks are very highly firewalled, and SSH ports are allowed only through a jump server which uses two-factor authentication using an RSA key on the Linux/Unix side, and FTP is blocked by default.

Without requesting firewall rules for dozens of SAN switches to do firmware upgrades, I would like to have an SCP server running on my primary DCFM server, which is Windows based, to allow me to perform SAN switch firmware upgrades using my central repository, but without having to request FTP access all over the place.

Any ideas?

share|improve this question

marked as duplicate by voretaq7 Oct 19 '12 at 19:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5 Answers 5

Vshell by Vandyke Software is the only decent ssh / sftp server I've found for the Windows platform.

share|improve this answer

Try this:

http://www.itefix.no/i2/copssh

while there please check out their hardbackup. It's a port of Dirvish to windows and a thing of beauty.

share|improve this answer

I have not tried doing this however the openSSH webpage links to WinSCP, maybe this could be used.

share|improve this answer
    
er... WinSCP is a client, not a server, right? –  Serge - appTranslator Mar 10 '10 at 8:10

why even go through the SCP and SSH process. Follow the below code in Java and you will be all set.

  1. download the jar file http://jcifs.samba.org/ (there is only one jar file)
  2. copy and paste the below code with your information for user name, password and shared folder and that's all you need

I was running this on Linux and wanted to write to a Windows box so you want to create a shared folder and put the shared folder name in the below variable if you don't know how to create shared folder on windows ...use google as always

    String user = "your_user_name";
    String pass ="your_pass_word";

    String sharedFolder="shared";
    String path="smb://ip_address/"+sharedFolder+"/test.txt";
    NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("",user, pass);
    SmbFile smbFile = new SmbFile(path,auth);
    SmbFileOutputStream smbfos = new SmbFileOutputStream(smbFile);
    smbfos.write("testing....and writing to a file".getBytes());
    System.out.println("completed ...nice !");
share|improve this answer
    
...perhaps because of the restrictions stated in the question (not wanting to have to alter firewall rules for dozens of hosts)? –  voretaq7 Oct 19 '12 at 20:34
    
I highly recommend you look into JCIFS before suggesting that you need to change firewall rules for dozens of hosts. JCIFS uses Server Message Block (SMB), also known as Common Internet File System operates as an application-layer network protocol. It's basically same technology it is used for your printers in your office. –  user717630 Dec 18 '12 at 19:25

Not the answer you're looking for? Browse other questions tagged or ask your own question.