Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-09-2010, 01:00 PM   #1
Registered: Apr 2010
Posts: 52

Rep: Reputation: 2
How to ssh to a windows machine from a linux machine

Hi everybody
I have a query related networking .
I want to know how to connect from a server which is operating on a windows os from a linux machine using ssh
Please help me.
Thanks $ regards
Rahul Sharma
Old 08-09-2010, 01:18 PM   #2
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
Install PuTTY on the Windows box; see
Old 08-09-2010, 01:41 PM   #3
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
PuTTY is a client only for ssh. You will need to install cygwin and openssh or you can install both with copssh
Old 08-09-2010, 04:30 PM   #4
Senior Member
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,850
Blog Entries: 21

Rep: Reputation: 119Reputation: 119
No native SSH servers for Windows that allows accessing a DOS command line?
Old 08-09-2010, 05:30 PM   #5
LQ Newbie
Registered: Aug 2010
Location: Egypt
Distribution: Cetnos
Posts: 9

Rep: Reputation: 1
very easy

you can do it very easy using netcat

well it is kinda of workaround but will work all you need is to setup netcat to listen on port 22(ssh port) and make it excute cmd.exe so you are connecting to windows box and having cmd on ssh port.

excute the below command on the windows machine and have fun:

nc -l -p22 -d -e cmd.exe -L
netcat can be found on :

hope this will help you


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Restarting Windows machine stops Linux machine mounting/connecting jamespetts Linux - Networking 3 05-29-2008 04:12 AM
how to ssh into windows machine from Linux box chaitanya_ralegaonka General 3 09-04-2007 01:09 PM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 03:47 PM
how to watch linux client machine desktop(activities) from windows machine deepak rawat Linux - Networking 7 07-03-2006 05:59 PM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 11:45 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration