LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2012, 09:27 AM   #1
ekelly30
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Rep: Reputation: Disabled
OpenSSH and Windows XP


I have downloaded and installed OpenSSH for Windows. (http://sshwindows.sourceforge.net/download/)

I have managed to set it up and get it running, I am able to use it to SSH from windows to linux. However I have been unable to set up an account properly to SSH from my linux machine to the windows machine.

The server is working as it has taken my RSA key and is asking for a password to sign in with. But I cannot figure out what the password should be or how to set it properly using the commands given in the documentation.

I setup the password file using:

mkpasswd.exe -l > ..\etc\passwd

I set up the groups using:
mkgroup.exe -l ..\etc\group

These files have been created and exist, however i've been unable to sign in. I tried using the User name from the first field in the file and the password from the second field in the file, but it does not work.
Anybody able to assist?
Thank you in advance.
 
Old 01-12-2012, 10:07 AM   #2
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386

Rep: Reputation: 43
It's been a few years since I ran an SSH Server on Windows but here are a few guides I used when I did it:

http://pigtail.net/LRP/printsrv/cygwin-sshd.html
http://www.netadmintools.com/art516.html
 
Old 01-12-2012, 10:39 AM   #3
ekelly30
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Unfortunately those tutorials took me a step backwards as I now do not have a working ssh server at all. For some reason when trying to configure the ssh-host, it failed to generate the host keys. So now the server will not start.

I think I might go back to OpenSSH for windows, as at least that way I had the server running and was getting prompted for passwords when trying to ssh to the machine, which feels like a step in the right direction.

Thank you anyway for your help.
 
Old 01-12-2012, 11:41 AM   #4
thund3rstruck
Member
 
Registered: Nov 2005
Location: East Coast, USA
Distribution: Fedora 18, Slackware64 13.37, Windows 7/8
Posts: 386

Rep: Reputation: 43
Quote:
Originally Posted by ekelly30 View Post
I think I might go back to OpenSSH for windows, as at least that way I had the server running and was getting prompted for passwords when trying to ssh to the machine, which feels like a step in the right direction.
Be aware that the OpenSSH project has been dead for a few years now and has been replaced by cygwin. Like I said it's been a few years since I ran SSH on windows but I do remember everything going smoothly. Sorry you are having trouble.

Best of luck!
 
Old 01-12-2012, 11:53 AM   #5
ekelly30
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
OK, thanks for the advice. I will try some more with OpenSSH, and then try cygwin again if I do not have any success. I just realised that the windows machine I am using as a server is a VM just to add more possible complications!

If I can't sort out OpenSSH I will try and completely remove OpenSSH in case there were conflicts causing cygwin's ssh to fail.
 
Old 01-12-2012, 12:36 PM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by thund3rstruck
]Be aware that the OpenSSH project has been dead for a few years now...
Sorry to split hairs, but for posterity's sake I want to clarify that the "OpenSSH on Windows v3.4-3" is shut down. The actual OpenSSH project is healthy and thriving.

For Windows solutions, see: http://www.openssh.com/windows.html (It refers to cygwin, as you mentioned.)
 
Old 01-13-2012, 04:07 AM   #7
ekelly30
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ok, thank you both. Anomie, I had realised that is what he had meant as I had read it on their page, but thank you anyway for pointing it out.

I've managed to get SSH running within Cygwin now after properly uninstalling OpenSSH for windows. I assume there must of been a conflict between some of the files.

I just now need to work out how to start a an exe on the windows machine (with arguments) through SSH. Interesting!

Thanks again
 
Old 01-13-2012, 08:59 AM   #8
ekelly30
LQ Newbie
 
Registered: Jan 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Ok, I've been at it all day but I've managed to open a windows application through the SSH connection. I had some issues as the GUI did not display any time I started it through SSH but it worked perfectly from cygwin. (note: i'm not claiming it was running through the SSH, just being started by the linux machine through the SSH)

I used cygstart PROGRAM

What was giving me issues was my permissions. I edited the passwd file to have the same groupid as the SYSTEM.

All I need to do now is figure a way of passing arguments to the program as it opens.
 
  


Reply



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
LXer: Why a Distro-Provided OpenSSH is Better than a Third-Party OpenSSH LXer Syndicated Linux News 0 02-02-2011 07:50 AM
OpenSSH: password vs rsa authentication, different behaviour on Windows hintze Linux - General 2 07-15-2008 08:54 AM
Download files to windows from linux using Openssh ZAMO Linux - General 3 06-02-2008 06:12 AM
WinSCP > Linux Firewall > Windows OpenSSH joadoor Linux - Security 4 07-14-2004 02:18 PM
Looking for openssh for windows Thaidog Linux - Software 6 09-28-2003 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:05 PM.

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