SSH connection refused after changing IP address

I am setting up an OpenSuSE 11.1 virtual machine under VMWare Fusion, earlier this morning I was logged in via SSH and doing some work then I decided I wanted the machine to have a different IP address. After changing I cannot connect via SSH, I keep getting the “Connection refused” message when I try.

I have restarted the SSH server and restarted the virtual machine, but no joy.

Thank you for suggestions.

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

If you are indeed getting Connection Refused specifically then it sounds
like you are reaching a box that does not have the firewall in the way but
at the same time does not have a service listening where you expect SSH to
be. Is the SSH service running? Does the port show as listening in the
netstat output? Anything in /var/log/messages when you restart the SSH
service?

Good luck.

wplate wrote:
> I am setting up an OpenSuSE 11.1 virtual machine under VMWare Fusion,
> earlier this morning I was logged in via SSH and doing some work then I
> decided I wanted the machine to have a different IP address. After
> changing I cannot connect via SSH, I keep getting the “Connection
> refused” message when I try.
>
> I have restarted the SSH server and restarted the virtual machine, but
> no joy.
>
> Thank you for suggestions.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ2iCnAAoJEF+XTK08PnB5TAcP/3kGW3iV6VFAihlh93S5NEkX
3y5NcFFOTszaV/R1ntJq0uWOwRDpPQE1P0qEy7zEUBbW908nI36IBNApb4CVczql
z9doaw1XwgtQHDMtfWHnpEomc0CrcIKZ1AVJTfazjFkIMjQdPKKE6nNu58sdHBRy
L/3dwzldiWsue1Rsl4OMdQYtw7wFYt7PPvt32RQg6l65P9djLtV3Ic5fNShBGfuD
pze5b4UmAqPi2QLFiFf6TJgMkzJPLLuCFxD1jRhWz3FHcMlQx0ZLXrRwj7sFVfNy
ZK7boig4qddqiyV0nc7Qa3i6jtwakeQrpoipePt9uSYxjeuY4OoKpEUoVH6kWhaa
dAJ1hI7/miPTQfdw3RWqtAiikNfD/Y1Unpur8lsOF8lOyDOvmEbYxDSoCjun5l1m
FN3ufCo84QQ5HDK6FiNL2ruN0c1H+Hh8YEaZl0pUpYHCqd7QGOusLyIRJJv+BQy/
m0SM9ljcfG9X9LPxIKcv5+pYLkJY3fgJ4ctDyEwe5M7G2QWMK1S1A40OeV4/i/tA
x4bq5SZ0XJonZr1ekIEuvWVaIFsH5KpLeVqJ+JVRATUbJ1+ftfVQnaPbYzykn5Nv
WFvRhSm14nyKqCVC0kcDd2g4rBfpSH7zA8jFwFjX+cpa7wDHlK1ivN+vi/H2vwru
bKW2O8wZpz2ZUyp3WVPC
=+OhG
-----END PGP SIGNATURE-----

ab@novell.com wrote:
> If you are indeed getting Connection Refused specifically then it sounds
> like you are reaching a box that does not have the firewall in the way but
> at the same time does not have a service listening where you expect SSH to
> be.

This conveniently discards the fact that not all firewalls have a
default drop rule.

Kind regards,
Andreas Stieger

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

Yes, that’s true, but this is an opensuse forum and customizing the
firewall wasn’t mentioned so I think those are safe assumptions and if not
then the time wasted will be deserved.

Good luck.

Andreas Stieger wrote:
> ab@novell.com wrote:
>> If you are indeed getting Connection Refused specifically then it sounds
>> like you are reaching a box that does not have the firewall in the way but
>> at the same time does not have a service listening where you expect SSH to
>> be.
>
> This conveniently discards the fact that not all firewalls have a
> default drop rule.
>
> Kind regards,
> Andreas Stieger
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJJ2iLcAAoJEF+XTK08PnB5iXkQAMQbEDDjJDhFon1Nz/sRCvNM
uTppOzna6tlqrkVrLL7FswcqNE99g7iLo5v8JBtqUNpSkx5boWMwzpJigH1Okhcl
oGUsk8IWGfysMU4ss4+qViKt8DwacB3M8mqmsZ4tjryDLrZsC92Q2Wf8XHybAmD5
3fzCjI1YL4pBb9zcOhKVDkL4nflT/tJ6tk63lVww/bdxyg5ILQybK5VOEtDaauSt
qdczcMq5QSp3ZCsRk6otGWEtZH3fXSb61Y7EPYyGbHbog0xbo3dhG5rgyeme3gTl
CCmu+uSyDqZ7MDfl4ZPbnaGjfKn6s5VSeaDsf57y1HAxIfX2M4GR3EML+L0+oW/S
sfrJb1IJhOhThSz6OU6EyvE+hN7E6sjP6BOOELl53E0nTZGIoQhBJyVsXQ8muApx
2enB5+pZhk+ckHjzr8Cu2XLnRCXckPBYjkSaJl2UYreQKPEqIA9ARbRJ7SqpaM/m
2ayolILCOdAitZTnOo5jvnFRG0wEfQ9miEuewxkMSHtjrxrY9y7i9U6JgOPQDu7C
X72WLNg9+EpPMr5W3TeAHB1HsBq8ibkcwsrL6Eu3aWgTRwD1a6oB5Cpdd4SoA6+/
URCQZY2qvmtQ3l4wX7I2kwMzALXmkt4A/aJJ1YYhUDf1oewg8kP8sfahGahKuvue
qRVd98YISgffcx1BCcOS
=uWw4
-----END PGP SIGNATURE-----

wplate wrote:
> I am setting up an OpenSuSE 11.1 virtual machine under VMWare Fusion,
> earlier this morning I was logged in via SSH and doing some work then I
> decided I wanted the machine to have a different IP address. After
> changing I cannot connect via SSH, I keep getting the “Connection
> refused” message when I try.
>
> I have restarted the SSH server and restarted the virtual machine, but
> no joy.

Please verify that

  • the virtual machine does in fact have the IP address you think it has
  • that is the only machine with that IP address
  • that his address can be reached from the host system (routing, etc)
  • you typed the address correctly
  • the SYN actually goes where you think it does

Kind regards,
Andreas Stieger

It is often the simple things that are wrong. I thought that the IP address I assigned was unused but perhaps I was wrong. I assigned the OpenSuSE machine a different IP address and all works now.

Thank you for helping prod me to check the obvious.

something to do in the future…ALWAYS ping the new IP address BEFORE changing! just to verify that the IP doesn’t already exist on the network!

mm0

I did ping before I changed, I promise. That’s why I thought it was unused. :slight_smile:

Hi,

Do you use the IP to connect or hostname? If you use the hostname your connection is refused cause of the key you stored. That’s a security feature to protecct you from IP spoofing.

hth

Bye

Erik

It was the IP address, but is all ok now (save for my other problem).

No Way… THANK YOU!!!
this little blurb, is All it took to get me up and running.
I’ve been fighting my problem for a couple of weeks now, since installation.
I could see my newest workstation via samba, but could not connect via sftp (linux network services) and it was making me crazy.
I’ve search and searched, posted here and at KDE to no avail.

Your comment about ssh hit a cord with me and wouldn’t you know it… it was indeed ‘stopped’ or ‘disabled’ in
YaST> System> System Services (runlevels)…

Thank you, thank you, thankyou, Спасибо!

Landis.rotfl!
ЛандисРеед.ком