problem with ssh connection

I have HP Mini Laptop with SUSE Enterprise Desktop 10. When I try to make a contact to my Ubuntu Server, I can read from the log of my server, that the password has been accepted and a session has been opened for the MyUserName I wrote on my SUSE terminal:
“ssh -l MyUserName MyURL”

But nothing further happens on the SUSE terminal. Only if I kill the session in my server, I get a message that the connection has been closed by the remote host.
The same thing happens with gFTP (using SSH2): I can tell from my server, that a session has been initiated, but no response comes to gFTP.

I know it is not a problem with the server, because I can make a ssh connection with a windows machine (using Putty).

I’m quite new with my SUSE laptop. Is this something to do with the firewall?

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

What does the client say when this happens? Add the ‘-v’ switch.

The firewall in SUSE is typically very lax on outgoing connections so
personally I really doubt it is the cause here, but who knows. You can
turn it off temporarily with the following command:

sudo /sbin/rcSuSEfirewall2 stop

Good luck.

tikitin wrote:
> I have HP Mini Laptop with SUSE Enterprise Desktop 10. When I try to
> make a contact to my Ubuntu Server, I can read from the log of my
> server, that the password has been accepted and a session has been
> opened for the MyUserName I wrote on my SUSE terminal:
> “ssh -l MyUserName MyURL”
>
> But nothing further happens on the SUSE terminal. Only if I kill the
> session in my server, I get a message that the connection has been
> closed by the remote host.
> The same thing happens with gFTP (using SSH2): I can tell from my
> server, that a session has been initiated, but no response comes to
> gFTP.
>
> I know it is not a problem with the server, because I can make a ssh
> connection with a windows machine (using Putty).
>
> I’m quite new with my SUSE laptop. Is this something to do with the
> firewall? How do I get my hands on the firewall? I’ve tried to find it
> with Yast, but to no avail.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ21P0AAoJEF+XTK08PnB55tQP/1m4Vp+4mZ4w2U7W9is9E5Br
vKpiIE7QhHny+vAzzG2SnZmzen7bZPf/GaM+cMus4hanPpGKUrZ84dABf0tBbjSz
Y8kkJKaKir/pQLizOTzjKcUHLVz+HQrEQk0Gzqk/NAcSm61OQiv2Fphx/dKBKeGa
HFY49mp4k3C1nNFO/HnVAaUw6zV3MsmGpE6/Ms5GJFjidzXpw0ylArwPJZZ65AIX
+0XzDNbEJJ0FNqOIEEHNSWJ5aFN9T9z/f6mdkVpshpBpFbhQTP+BPEyu7W8hfgEk
DIvTrS+szn9l88kRDF6x7Q//25d0xH9N9OvRQlrSdniA+Rlfbl08SQe0BV7GUIyX
c/PL6DNYLA3nw4zgMRMQSa6+MOk0ptUJVsydLyhy0YbnasSFoizQbsT4M0+OZ3EU
rQl1V4nldKMlDRnbDYYxsqmif4RuX53apvkDil5OI0v4n9BrSCV80xdSwQV+s9H/
oWrgP4/Eaj7/SKEUb+d3ksfRvBv5WtU4LLRBXd2qp3iAFe7qe1M92k+zuYsTii2H
wG5aKZU8Zy9hzXpxFgusp4wWnTth9F1ccx8uIHyR+FEhKz0rxhcQvBeqdv4lIrfS
Tk2pyBXjNTEC+rDiTNb9UdD59bXXSCdxOeDHYfi4sYnuvGtu1gIrfhzi0RnIBZXT
1Q5i1sXft+PdUZPdEvjQ
=GPnF
-----END PGP SIGNATURE-----

OpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to renki.ath.cx [91.154.9.46] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7p1 Debian-8ubuntu1.2
debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host ‘renki.ath.cx’ is known and matches the RSA host key.
debug1: Found key in /root/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa
debug1: Next authentication method: password
olli@renki.ath.cx’s password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = fi_FI.UTF-8

I turned the firewall off using Yast, but it made no difference:
after “debug1: Sending env LANG = fi_FI.UTF-8” nothing appears.

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

Looks perfect to me. For comparison this is from my system (SLED 11) to a
SLES 10 system:

<quote>
ab@mybox:~/Desktop> ssh -v ab@myserver
OpenSSH_5.1p1, OpenSSL 0.9.8h 28 May 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to myserver [123.45.67.89] port 22.
debug1: Connection established.
debug1: identity file /home/ab/.ssh/id_rsa type -1
debug1: identity file /home/ab/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.2
debug1: match: OpenSSH_4.2 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host ‘myserver’ is known and matches the RSA host key.
debug1: Found key in /home/ab/.ssh/known_hosts:5
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/ab/.ssh/id_rsa
debug1: Trying private key: /home/ab/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
</quote>

Was this attempt done with the firewall down? Have you tried taking down
the firewall on the server side just temporarily for a quick test? I’d be
skeptical of that being related on either side but nothing else makes
sense unless you just have a slow-running login script on the server. Try
creating a new user (`useradd -m ab && echo ‘somepassword’ | passwd

  • –stdin ab`) and then logging in with that user (ab) with the password
    (‘somepassword’) and see if that works. Maybe try hitting Ctrl+C once
    logged in to cancel any login scripts… if that works you’ll probably be
    dropped to an ugly prompt without the user formatting.

Good luck.

tikitin wrote:
> ab@novell.com;1969499 Wrote:
>> What does the client say when this happens? Add the ‘-v’ switch.
>>
>
> OpenSSH_4.2p1, OpenSSL 0.9.8a 11 Oct 2005
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: Applying options for *
> debug1: Connecting to renki.ath.cx [91.154.9.46] port 22.
> debug1: Connection established.
> debug1: permanently_set_uid: 0/0
> debug1: identity file /root/.ssh/identity type -1
> debug1: identity file /root/.ssh/id_rsa type -1
> debug1: identity file /root/.ssh/id_dsa type -1
> debug1: Remote protocol version 2.0, remote software version
> OpenSSH_4.7p1 Debian-8ubuntu1.2
> debug1: match: OpenSSH_4.7p1 Debian-8ubuntu1.2 pat OpenSSH*
> debug1: Enabling compatibility mode for protocol 2.0
> debug1: Local version string SSH-2.0-OpenSSH_4.2
> debug1: SSH2_MSG_KEXINIT sent
> debug1: SSH2_MSG_KEXINIT received
> debug1: kex: server->client aes128-cbc hmac-md5 none
> debug1: kex: client->server aes128-cbc hmac-md5 none
> debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
> debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
> debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
> debug1: Host ‘renki.ath.cx’ is known and matches the RSA host key.
> debug1: Found key in /root/.ssh/known_hosts:1
> debug1: ssh_rsa_verify: signature correct
> debug1: SSH2_MSG_NEWKEYS sent
> debug1: expecting SSH2_MSG_NEWKEYS
> debug1: SSH2_MSG_NEWKEYS received
> debug1: SSH2_MSG_SERVICE_REQUEST sent
> debug1: SSH2_MSG_SERVICE_ACCEPT received
> debug1: Authentications that can continue: publickey,password
> debug1: Next authentication method: publickey
> debug1: Trying private key: /root/.ssh/identity
> debug1: Trying private key: /root/.ssh/id_rsa
> debug1: Trying private key: /root/.ssh/id_dsa
> debug1: Next authentication method: password
> olli@renki.ath.cx’s password:
> debug1: Authentication succeeded (password).
> debug1: channel 0: new [client-session]
> debug1: Entering interactive session.
> debug1: Sending environment.
> debug1: Sending env LANG = fi_FI.UTF-8
>
>
>
> I turned the firewall off using Yast, but it made no difference:
> after “debug1: Sending env LANG = fi_FI.UTF-8” nothing appears.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ22MfAAoJEF+XTK08PnB5zXUP/0kl+poHVos0N/BXfbSvNgIo
ofIy1xrt/JoL0efTc2/AjxTc4o6wnX4YsSMPFmyJ0oh/mYDrM7UrKIfgen+RCO9R
KOLkoyNdTEpiWbjYqriULh6/H0wNkxO5mzjt/i+uI73Q8pyeHvcQ18RF+c6Ll+0n
4mah0B18wXDEUh4bRlLr4mSyaAz1nsNh+dCMxuX6n/bqoqR3959KfP83lKdt3Ymk
6u9z4Fla6JXaGciY+j6Xtt5OZLEuI6jwdF+6pCHzeCjPJaI4e6h4navnQ7gWst+2
r8URQ7mzXgmFk3cun/GaPzG+4wnuDFPxaXVYZaC1YaMF+4gLLH0nRUeu+rbJb4Ue
/ZNn16Xx9Fsg4GyRcALZzn7AihG+zirYKFlIQNMnWeE32Wr79Nx06ngX803iIgjQ
px4+jCigzXxOgIC8nbZ+KWm5HlrW2is99Xn3QRgIJED3dxKsw1uplnC9iHDEmQgz
CNVJMLNGvYCU6VB/AZZqnaWipuoXBRzg6JxQ+AV98SoP8MnK5qMYqVlIWveHgxI0
8VTUUq1oy7W/IwqRjsxfjbHFBdTwRdBfQHIBXJLj4PjHWBhA5/GndzfYix5EJHTW
7Wtti7LGVElP6zKEn21ygyVbhOBO8nbMuHQ75iWMSZKVDcxfm3xG96PLn1Q4+fyh
DUX2iIWwlzGEU7VWTSF5
=XWi4
-----END PGP SIGNATURE-----

I have tried with the firewalls in both machines down. Also tried with a different user.
Hitting Ctrl+C just produces letter “c” after the connection has been closed on the server side (by killing the process).

I still think there can be nothing wrong on the server side, since Putty connects fine from a windows machine. Too bad I don’t have username+password to any other ssh-server, so I could try it. Like I said earlier, GnomeFTP can’t make the ssh-connection to my server either, but it can make a FTP connection to a different server.

Very strange!

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

And what did a new user on your server do?

Good luck.

tikitin wrote:
> ab@novell.com;1969523 Wrote:
>> Was this attempt done with the firewall down? Have you tried taking
>> down the firewall on the server side just temporarily for a quick test?
>>
>> —
>> Try creating a new user
>> —
>> Maybe try hitting Ctrl+C once
>>
>
>
> I have tried with the firewalls in both machines down. Also tried with
> a different user.
> Hitting Ctrl+C just produces letter “c” after the connection has been
> closed on the server side (by killing the process).
>
> I still think there can be nothing wrong on the server side, since
> Putty connects fine from a windows machine. Too bad I don’t have
> username+password to any other ssh-server, so I could try it. Like I
> said earlier, GnomeFTP can’t make the ssh-connection to my server
> either, but it can make a FTP connection to a different server.
>
> Very strange!
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ27tUAAoJEF+XTK08PnB57wgP/1YWQSUpuGw2o+ml6Y1BrEXz
BQrgbjRqgQHZT1l3Xk5wwgUB541t6d0PYEAclpfeAHkZosAb4PZyvR0ZzFs61Boq
Rn8mqF+T8PT/XNFyRWTGqaLg9XaLwGp3A5Iepj5/rOo/If+Y0n4SRyP/b0BJ9Ev6
8yecWYzXIu2wmbo0xovYis5BzmBuv8XuGPsRjAbmoiZAkKLhPnJZhWxed6Agt+Ot
BUChD7FDepiKQ/sqyidPKAVlYug0E5fEBSO3x4f84FCn4yHaxZqIpC3ZE3God/uM
cxq272HkW7ie+Z0cfRqsemh8TtbLMdupAFIP3tX+nefsrY14qinU9FpAXslfEbBA
DfkxDwEpZnxDMDOM9rgVFbzpguPikA5Ladnp1GeP6cGrc/L4OYqatNfg9MhZlEzv
c5V7qiv41afH+g0E1Yj92QCLsweyHS8LKHGfIMa4ThVqNDHySwXzduiBdifkBTph
zm0N8NrV1EJLrpxlhqfvvLrMpsdzBmY1Vo/Z4Jp5X0ashEvnXSGUrM8PO6Z/TlCN
8gByOPbMQ05hfaTWEBi7X0QUeoI98j1BIqB34MJZEbCWnnPNOHeJ+1DbcahlAdl8
QVtVHIPTFGHTXJAhDN/AOEDniZhPbV4Hgk8qbVuCbjuRJitbKyiz9VcPIBwMOlCS
kfbNF/uBupTXEIlc/Sf9
=FOLR
-----END PGP SIGNATURE-----

I am using a ADSL-modem/router with an ethernet connection to the server and WLAN connection to the laptop. It just didn’t work. Once I took my laptop away from home and connected it to a differenet wireless network, everything functioned the way it is supposed to function!