≡ Menu

Windows command line SSH

Openssh for windows  is a freely downloadable command line ssh client for windows operating system. This can be downloaded from http://sshwindows.sourceforge.net/


A snapshot with the options is given below. (Click on the image to see the options more clearly).

Installation instructions:

  1. Open the above download link and click on Binary Installer Releases
  2. Download the zip file
  3. Unzip the file and run the setupssh.exe file
  4. Select the options based on your requirement. Unselect server component if you just need the client version.
  5. After completing installation, open command window and then run ssh

If you want a GUI ssh client you can use Putty.exe.  Use Putty connection manager in combination with Putty to have tabbed ssh sessions like the Terminal on Linux.

Related Posts:

How to enable auto login in Putty for ssh connections

{ 6 comments… add one }
  • george November 11, 2011, 9:13 pm

    Good info, but with Windows (7 at least) OpenSSH for windows client Ignores private keys for authentication becuase the Linux file permissions always read 0644 whatever you do!!
    Annoying – if you know a soloution, except using Cygwin please post.
    Thanks!

    PS. and yes I tried the windows ACL & chmod ports, they don’t affect what the binary sees.

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0644 for ‘C:/users/User/desktop/openssh-id_rsa’ are too open.
    It is recommended that your private key files are NOT accessible by others.
    This private key will be ignored.

  • george November 11, 2011, 9:50 pm

    OK I found a soloution to my above problem, to use key auth command line ssh on windows 7:
    Just use copssh

    In this command prompt, type:
    cd “c:\program files\cwrsync\bin”
    and hit enter. Then type:
    ssh-keygen -t rsa -N ”
    accept the default location, the pretend root ‘/’ is the Program Files\ICW folder, so then you can use this command perfectly even from a normal Windows CMD prompt and it works!:

    C:\Program File\ICW\bin>ssh -i /.ssh/id_rsa user@host uptime
    and it works omg sweet. That’s OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011

  • george November 11, 2011, 9:50 pm

    My bad I copied the instructions, there’s one path error, this:

    cd “c:\program files\cwrsync\bin”

    Should be this:

    cd “c:\program files\icw\bin”

  • mary February 7, 2014, 10:54 am

    Is this secure. Would it result in virus attack.
    Also, Is putty safe to use?

  • Robert February 17, 2016, 7:55 am

    Warning, the installation removes everything in PATH environment variable and replaces it with the path to the ssh cmd line client!!!

  • MaxLevs May 20, 2016, 1:48 pm

    Hello, guys! How do you solve a problem with the attempt to search “/ home / *”? The program can not write or read the known_hosts file, as does not refer to “C: \ Users \ MyCoolUser \ .ssh”, and on “/home/MyCoolUser/.ssh”(. Tell me, please , because the password is 37 characters constantly do not want to enter .

Leave a Comment