LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-19-2011, 02:57 PM   #1
zev42
LQ Newbie
 
Registered: Sep 2010
Distribution: Unbuntu 10.04
Posts: 18

Rep: Reputation: 0
SSH to an IP that has multiple computers behind it


Hello all, the issue is as follows"

I'm trying to conncet via ssh my Ubuntu 10.04 netbook to my desktop a windows 7 machine. I've tried COPSSH/Cygwin as the server on the win7 machine, and on the netbook, bitvise + good old fashioned command line ssh

I believe this (and my far more comp-learned friend agrees) is because we've several machines running through a single internet source
that is to say my network runs as:

Target comp--------------------Switcher---Gateway--------------Internet
unique ipv4,6, mac#...............|.............|unique ipv4
............................................|.............|unique mac address
............................................|
Second comp ______________|
unique ipv4,6, mac#

or so sayeth the Windows network map anyways

the point of this being, how can i connect to target comp?
(the port is open, it allows COPSSH and listens at the correct port)
i've been using

http://lifehacker.com/#!205090/geek-...ome-ssh-server

and

http://lifehacker.com/#!237227/geek-...sh-socks-proxy

but with cygwin i get a 1069 error that, many have reported on the web but, few answers were offered for.
Much thanks for reading, any and all notes or assistance is graciously accepted!
 
Old 02-19-2011, 04:22 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
I believe this (and my far more comp-learned friend agrees) is because we've several machines running through a single internet source
This is not a complete answer to your question.

I just wanted to add that the problem is not caused by the 'single internet source', since you are only working within the local network. The gateway would only become a complication if you were trying to ssh in from the outside, because the gateway would not know which machine to route to (though you can explicitly forward requests to a specific machine using port forwarding). Since the server and client are in the same IP address space, it is not a network problem.

It is more likely that the problem is to do with the account settings for the sshd_server on the Windows machine that is preventing the server from starting.

Last edited by neonsignal; 02-19-2011 at 04:23 PM.
 
Old 02-19-2011, 04:39 PM   #3
zev42
LQ Newbie
 
Registered: Sep 2010
Distribution: Unbuntu 10.04
Posts: 18

Original Poster
Rep: Reputation: 0
hmm, point taken, really the only thing ive found to change circumvent the 1069 error was the command

passwd sshd_server

to which i got a reply stating such a account didnt exist :/
COPSSH say's its running, but, it has very little to tweak with or get any sort of information from without upgrading their service.

are you aware of any reliable windows virtual servers? or am i just n00bing it up??

(thanks for the reply by the by)
 
Old 02-19-2011, 05:38 PM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
The sshd account in copssh is probably called something like SvcCOPSSH these days (and it should have created a reasonable password already when it was installed).

When you say it is running, how do you know that?

Have you added an activated user?

Where are you seeing the 1069 error?

What error do you see on the linux side?

Ideally what would have happened is:
1. install copssh on the server machine 'foo'.
2. activate user 'bar'
3. start the sshd server from the copssh control panel (if it isn't already going)
4. ssh in using 'ssh bar@foo'

Last edited by neonsignal; 02-19-2011 at 05:40 PM.
 
Old 02-19-2011, 06:10 PM   #5
zev42
LQ Newbie
 
Registered: Sep 2010
Distribution: Unbuntu 10.04
Posts: 18

Original Poster
Rep: Reputation: 0
well, ik its running only so far as the large hard to miss button on COPSSH control panel is green and says it is :/

i see the 1069 in cygwin terminal when i type the command


net start sshd

as previously stated, i tried to reset the password for sshd_sever, but, it was not extant.

in linux it states:

ssh: connect to host *********** port **** connection refused
 
Old 02-19-2011, 10:01 PM   #6
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Some of this might be obvious to you, but bear with me. I can't give you exact instructions for Win7 (I have just installed copssh on an old Win2000 box to test this out).

Have a look under the user list (which used to be accessible from the control panel on Windows). If you do not see the SvcCOPSSH service account, you may need to go to an advanced configuration or under the users in the Microsoft computer management app.

Look at the SvcCOPSSH service account and check that it is a member of the Administrators group (perhaps under a properties tab). If it isn't, add it. You can also change the SvcCOPSSH account password here if you desire.

There is another dummy account called sshd, which as far as I know doesn't need to be enabled (it is used for the openssh privilege separation).

Now under the Services app of the computer management, there is a service called Openssh SSHD. You can set the login password here (perhaps under a properties tab), so that the ssh service can log in to its account (which obviously has to match the SvcCOPSSH account password). You can also restart the service here (perhaps by right clicking).

The error you are getting is indicating that the service cannot log in to its account, which means that it will not even be able to listen on the port, let alone start the ssh session.

I don't have the experience to recommend you any other ssh servers for Windows. The copssh one is just openssh bundled up with cygwin, so apart from setting up the Windows side configuration, it is a mature combination of software (and simpler than having to manually install openssh into cygwin yourself). Openssh is renowned for the thought put into its security.

Last edited by neonsignal; 02-19-2011 at 10:03 PM.
 
  


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
[SOLVED] SSH on multiple computers in the same network Choragos Linux - Server 8 12-30-2010 10:52 AM
Shutdown multiple computers via ssh, try different passwords genderbender Programming 10 10-01-2010 02:59 PM
ANNOYING FREEZES: Happens on multiple distributions on multiple computers. keithieopia Linux - Software 26 02-23-2009 02:36 PM
SSH to multiple computers behind firewall hazmatt20 Linux - Networking 13 08-17-2006 01:32 PM
compiling on multiple computers Peluso Linux - Software 3 08-30-2004 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:09 AM.

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