# Cannot SSH to Sles11sp1 Server

**URL:** https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749
**Category:** SLES Configure-Administer
**Created:** [June 14, 2012, 4:02pm UTC](https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749 "2012-06-14T16:02:36Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![sjfast911](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sjfast911](https://forums.suse.com/u/sjfast911)
#### Post date: [June 14, 2012, 4:02pm UTC](https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749/1 "2012-06-14T16:02:36Z")

</div>

Hello,

I recently setup a Sles11sp1 server on a VM session. The problem is I cannot SSH to it. The server has network connectivity. I can ping the gateway. I can ssh to other servers on the same subnet. I checked SSHD and it is running. The server is listening on port22. Remote Administration is turned on. Any suggestions?

Scott

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [June 14, 2012, 4:54pm UTC](https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749/2 "2012-06-14T16:54:33Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Is the firewall allowing connections to TCP 22? A service may listen,  
but the kernel does not need to allow packets to arrive. From another  
Linux box try this to test connectivity to the SSH service on your  
broken box:

netcat -zv broken.box.goes.here 22

Post the output. We’re looking for it to say ‘open’ in which case the  
next step may be to get debugging output from an SSH client:

ssh -vvv [youruserhere@broken.box.goes.here](mailto:youruserhere@broken.box.goes.here)

Good luck.  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v2.0.18 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iQIcBAEBAgAGBQJP2e0ZAAoJEF+XTK08PnB5oYQP/0OMXNK87NtIVKHP1i2ciUXQ  
Tnw33HQGaHcBfDH9+txRvdCBnVeP/o68dp1GWreIBbzDpGTODQe0tdNY/QZ0wB1j  
AXoPw5WCIhGNaJ8DXo0rSAHxDyWSNv5PdEE0bs+p0c2gO643SMLeyEQgvCH8o2am  
B3heooKwtHb6ofr28pcs5/MazPBGxf6fBvF/RU3zH9Cnl2X0//GPqB9K9SyLdpk1  
vM2l5PY/Xcc6b8GvV0GN7DJr/N16mOszW7ZYTDu8zoNtyUOKQDlESaRw8TNTJZ3v  
S6DHxF4Lu80SOlUIrKqNXOJwrjHjftll9FzOLwhb+Fa8FWrjBtHKyXKmCOklm7eM  
gtHOIXXSTdaOmwTxiiIHnGsnimFLEdav9jBLaofZvniQNFE3la2cStCgj2PZK5fP  
vi6alYUWdQCTHXtdOtJ3deIm7AadTdL1fKLbu5Zz03/c5GHPmZOzrj82i9tCAAv0  
lTYhRByZAR/I6sYUCjvKTy+DGz2JwETR8VlMX7CO5BbHXDMDsn8ntwkNANZk/CAz  
dttRjcFNqAsgtnXPUt/EPzMvurab17jLMyrn0kODWhhxci4O9f6lobGM1C4ZZw5t  
0k6FV/RdiGeRF2jnafDCJEAUvXd9zxegBOYeh6Ju8x71hfi9VKFqEmm5bMhxmzLO  
DR0ZkAstFmjiUVLcdEF/  
=19Yf  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

### Author: ![malcolmlewis](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/malcolmlewis/32/11375_2.png) [@malcolmlewis](https://forums.suse.com/u/malcolmlewis)
#### Post date: [June 14, 2012, 4:55pm UTC](https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749/3 "2012-06-14T16:55:38Z")

</div>

> [@sjfast911](#):
>
> Hello,
> 
> I recently setup a Sles11sp1 server on a VM session. The problem is I  
> cannot SSH to it. The server has network connectivity. I can ping the  
> gateway. I can ssh to other servers on the same subnet. I checked SSHD  
> and it is running. The server is listening on port22. Remote  
> Administration is turned on. Any suggestions?
> 
> Scott

Hi  
Check the firewall (via YaST) and ensure the sshd server port is open.  
Else add some verboseness to you ssh command and post the output around  
code tags (remove any sensitive data…)

```auto
ssh -vv username@host
```

–  
Cheers Malcolm Â°Â¿Â° (Linux Counter #276890)  
SUSE Linux Enterprise Desktop 11 (x86\_64) Kernel 3.0.31-0.9-default  
up 1 day 10:01, 3 users, load average: 0.20, 0.20, 0.22  
CPU Intel i5 CPU M520@2.40GHz | Intel Arrandale GPU

---

<div class="post-metadata">

### Author: ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)
#### Post date: [June 14, 2012, 5:04pm UTC](https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749/4 "2012-06-14T17:04:44Z")

</div>

On 14/06/2012 14:04, sjfast911 wrote:  
[color=blue]

> I recently setup a Sles11sp1 server on a VM session. The problem is I  
> cannot SSH to it. The server has network connectivity. I can ping the  
> gateway. I can ssh to other servers on the same subnet. I checked SSHD  
> and it is running. The server is listening on port22. Remote  
> Administration is turned on. Any suggestions?[/color]

When you set up the server did you allow SSH through the firewall? By  
default, the SSH port is blocked. See step 12 @  
[http://www.suse.com/documentation/sles11/book\_quickstarts/data/sec\_sles\_installquick.html](http://www.suse.com/documentation/sles11/book_quickstarts/data/sec_sles_installquick.html)

## HTH.

Simon  
Novell/SUSE/NetIQ Knowledge Partner

* * *

## Do you work with Novell technologies at a university, college or school? If so, your campus could benefit from joining the Novell Technology Transfer Partner (TTP) program. See [novell.com/ttp](http://novell.com/ttp) for more details.

---

<div class="post-metadata">

### Author: ![sjfast911](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sjfast911](https://forums.suse.com/u/sjfast911)
#### Post date: [June 14, 2012, 5:15pm UTC](https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749/5 "2012-06-14T17:15:45Z")

</div>

The firewall is turned off. Here are the results from the netcat:

pwausoinf06:~ # netcat -zv 10.139.248.191 22  
Warning: forward host lookup failed for [pwausosmt201.app.hscint.net](http://pwausosmt201.app.hscint.net): Unknown host : No such file or directory

Thanks  
Scott

---

<div class="post-metadata">

### Author: ![sjfast911](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sjfast911](https://forums.suse.com/u/sjfast911)
#### Post date: [June 14, 2012, 5:21pm UTC](https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749/6 "2012-06-14T17:21:33Z")

</div>

That was it. Thanks for the help!!

Scott

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)
#### Post date: [June 14, 2012, 6:33pm UTC](https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749/7 "2012-06-14T18:33:37Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Apparently not, per your other post. I’m glad opening that port fixed it.

Good luck.  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v2.0.18 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iQIcBAEBAgAGBQJP2gRRAAoJEF+XTK08PnB54L8P/Rg5X3uh+MzpUd9wy0z6b6YJ  
U5pIiI9sXFpZe5Wiin1Hn2ALqarO9zgckrYRm9RASnfatg+VW59TFedpGJ0tsKXa  
HRBZTZjAOVq/rWcQX5o0uxtVyPYISPRFAGSEqgX+Vq+8KSeVk4Q9W3Ews+an4H2T  
ZEGOiMgU8NaXTy6gs3tqpA/BHXccWPPZBfGkLQFmC6FdECNZFXwsYMqXoCPFfa5y  
C1IWjKf+MSDW+vcCqMbmLuECEEBShpgoi7gp4XZpf03UHEWiiFAFzQXSYLOhT0QM  
JHo8AAfsJzFYtenOQXeJQKn2fRt1AWFw1xswoLDc66Cc4II4fqVyyDlPCP07Ky6r  
NMTYJCmMT54kU1HXuAY+41RQOAs7SxtLrLizarw5FiV5vw//MmwMP/IC4dVOkgaI  
BfE87+z3y0M1dvy+fSZ4qnPOwkcRc/sxwU2eU8tzbMR4DUfE3zqqeaDnRGc7j4lc  
X3cJtuzHrWqqUAOv63w9AXB9yQs2NMe384yWQKQQyR2yWgZpc3wMlIZYp6ZeA3tq  
sgIHYg31NxIr+BQ3RuU+GogN5cABVJpaWi7i1+lsMDhcsCkBjwrIq6MlWODjBjkL  
1/PA3OaZpBmADlxQFRgj8jU0wYvPr3yKlK5A0L1QqK6EWrVsJC1lL3RxJ4jhoDro  
Ta0qfcKJLQKti1mhTPFQ  
=f5oZ  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

### Author: ![sjfast911](https://avatars.discourse-cdn.com/v4/letter/s/f9ae1b/32.png) [@sjfast911](https://forums.suse.com/u/sjfast911)
#### Post date: [June 15, 2012, 6:34pm UTC](https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749/8 "2012-06-15T18:34:19Z")

</div>

Well I guess there is more than one place to turn off the firewall. Cause I checked the area where you turn on/off Remote Administration and there is an option in that area to turn off the firewall. It said disabled. But afer reading his suggestion and looking at the documentation I did a search for Firewall in Yast. Which it was not turned off. So I turned it off. Now I know what to check for.

Scott

---

<div class="post-metadata">

### Author: ![smflood](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/smflood/32/10576_2.png) [@smflood](https://forums.suse.com/u/smflood)
#### Post date: [June 16, 2012, 12:24am UTC](https://forums.suse.com/t/cannot-ssh-to-sles11sp1-server/22749/9 "2012-06-16T00:24:24Z")

</div>

On 15/06/2012 16:44, sjfast911 wrote:  
[color=blue]

> Well I guess there is more than one place to turn off the firewall.  
> Cause I checked the area where you turn on/off Remote Administration and  
> there is an option in that area to turn off the firewall. It said  
> disabled. But afer reading his suggestion and looking at the  
> documentation I did a search for Firewall in Yast. Which it was not  
> turned off. So I turned it off. Now I know what to check for.[/color]

Instead of turning off the firewall add the SSH service (port 22) to the  
list of allowed services in the firewall. See  
[http://www.suse.com/documentation/sles11/book\_security/data/sec\_fire\_suse.html](http://www.suse.com/documentation/sles11/book_security/data/sec_fire_suse.html)  
for more information.

## HTH.

Simon  
Novell/SUSE/NetIQ Knowledge Partner
