SSH problem

Ok,

I am running 11.2 and set ssh to boot at runlevel 3 and 5 through yast and started the service through the terminal. I have turned off the firewall on my wireless router and in the local firewall.

When I try to connect from a machine in my office, I get the following

ssh: connect to host xx.xxx.xx.xxx port 22: Connection refused

When I run telnet from the machine, I get:


telnet: connect to address xx.xxx.xxx.xx: Connection refused
telnet: Unable to connect to remote host: Connection refused

netstat -tlnp on my machine shows:


tcp        0      0 :::22                   :::*                    LISTEN     31622/sshd          

Does anyone have any idea what I did wrong?

Hi
You need to route (port forward) from your router to the machine your
trying to connect to. I would also recommend you change the default
port to something other than 22 as well…


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.3 (x86_64) Kernel 2.6.34-12-default
up 2 days 13:14, 2 users, load average: 0.06, 0.05, 0.00
GPU GeForce 8600 GTS Silent - Driver Version: 256.44

Hi
You need to route (port forward) from your router to the machine your
trying to connect to. I would also recommend you change the default
port to something other than 22 as well…

M,
I never port forward. I have the router firewall on and just the appropriate port in SUSE open.
But I do have some niggles - but in 11.3
Don’t mean to but in but: ssh issues in 11.3

Has the OP here configured sshd_config

Hey guys,

I tried port fowarding on my router to no avail. I do not know what to change in the sshd_config file. The only change I have made was to not permit root login and only allow one user ssh rights.

What else do I need to change?

I would run a portscanner from a remote machine, just to check sshd is listening for connections. nmap is good (bit full-on, but you get cool points as Trinity used it in The Matrix).
Can you do ssh user@localhost (locally)?

Have you considered that your office may not allow outbound connections on port 22? Mine allows nothing but 80/445 so no ssh for me alas.

How? Does your router not do NAT then? Or something else? I thought you’d need to route stuff, so <external ip> maps to <internal ip> at least?

Hi
Just tried from the blackberry to this machine, works fine connects as
per normal with default port and port forwarding on the router active.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.3 (x86_64) Kernel 2.6.34-12-default
up 2 days 21:34, 2 users, load average: 0.17, 0.13, 0.05
GPU GeForce 8600 GTS Silent - Driver Version: 256.44

SDB:Configure openSSH - openSUSE

Tried what? SSH or SFTP

I can SSH no probs or fish://

Hi
So have you confirmed sshd is running on the machine your trying to
contact? What did you do to ‘allow one user ssh rights’?

I changed nothing on this machine except allowed sshd access through
the firewall.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.3 (x86_64) Kernel 2.6.34-12-default
up 2 days 22:45, 2 users, load average: 0.13, 0.06, 0.02
GPU GeForce 8600 GTS Silent - Driver Version: 256.44

Hi
Just ssh :wink:

Hello,
did you try Konsole (root) ?
</etc/init.d/sshd status>
On o.S. 11.2 sshd is <unused> by default after booting.
To activate type </etc/init.d/sshd start>,for deactivation
type </etc/init.d/sshd stop >
It returns to <unused> after turning off the machine.
On o.S. 11.1 sshd is running by default after booting.
E.K.