dbTalk Databases Forums  

(Semi-OT) SSH across Internet difficulties

comp.databases.pick comp.databases.pick


Discuss (Semi-OT) SSH across Internet difficulties in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael Nelson
 
Posts: n/a

Default (Semi-OT) SSH across Internet difficulties - 10-10-2005 , 06:27 AM






Hi all,

This is slightly off-topic here, but I hope that someone here might be
able to help me...

We are having some problems using SSH across the Internet.

We have a client with an ADSL broadband connection, and dynamic external
IP address. I am using no-ip.com to provide me with a subdomain name,
that is dynamically updated to point to the client's current IP address.

I have a port forwarded through from the outside, to a server running
RedHat 9, running 'sshd'.

I can connect to the machine from elsewhere on the Internet, using 'ssh'
on my own Linux machine, and AlphaCom, WinSCP, and PuTTY on my Windows
2000 notebook.

However, after a seemingly random period of time, I am disconnected.
This is obviously no good if I am using D3 at the time - the user will
remain logged on, potentially using up the last user licence...

'ssh' says: ''
PuTTY says: ''
WinSCP says: 'Network error: Connection reset by peer'

One thing which I have noticed is that, if I have several programs
simultaneously connected to the server, they all seem to get kicked off
at the same time.

Does anyone have any ideas?

Regards
Michael Nelson
Softec Ltd

Reply With Quote
  #2  
Old   
Michael Nelson
 
Posts: n/a

Default Re: (Semi-OT) SSH across Internet difficulties - 10-10-2005 , 07:05 AM






I apologise. I sent my last post mistakenly before finishing this bit:

Michael Nelson wrote:
Quote:
'ssh' says: ''
PuTTY says: ''
WinSCP says: 'Network error: Connection reset by peer'

Here is what I meant to type:

'ssh' at the shell in Linux says:
Read from remote host <hostname>: Connection reset by peer

PuTTY says:
Network error: Connection reset by software

WinSCP says:
Network error: Connection reset by peer

AlphaCom6 says:
Connection closed by host
Disconnected


Reply With Quote
  #3  
Old   
hartingm
 
Posts: n/a

Default Re: (Semi-OT) SSH across Internet difficulties - 10-10-2005 , 09:13 AM



This is just a guess, but it looks like that may be occurring when the
IP address is changed.


Reply With Quote
  #4  
Old   
Tedd Scofield
 
Posts: n/a

Default Re: (Semi-OT) SSH across Internet difficulties - 10-10-2005 , 09:28 AM



hartingm wrote:
Quote:
This is just a guess, but it looks like that may be occurring when the
IP address is changed.
yea that's what I would guess too. or just the ADSL modem resetting.
Either way its going to drop you briefly =(



Reply With Quote
  #5  
Old   
diets
 
Posts: n/a

Default Re: (Semi-OT) SSH across Internet difficulties - 10-10-2005 , 10:47 AM




Suggest the following:
1. Get into the DSL modem setup using a browser, and change the "IP
allowed" settings to allow the IP address of the host on which D3 is
running, making "public" port 23
2. Using no-ip will then work just fine. You dont even need to run the
no-ip DUC on the server, since it will automatically map to the IP
address allocated by the ISP.
3. Remember to properly password protect your accounts, since anyone
can now "ping" your hostname, and by implication get into the database
via port 23. I change the default port to a hidden one, and also have
some stuff preventing access. I use this to do remote support for
almost all my clients in South Africa.
4. The other option would be to installa VNC on the remote site.

HTH

Diets


Reply With Quote
  #6  
Old   
Frank Winans
 
Posts: n/a

Default Re: (Semi-OT) SSH across Internet difficulties - 10-11-2005 , 07:48 AM



"Michael Nelson" wrote
Quote:
snip
However, after a seemingly random period of time, I am disconnected.
snip
One thing which I have noticed is that, if I have several programs
simultaneously connected to the server, they all seem to get kicked off
at the same time.

Ok, right up until you wrote that last bit it sounded like a classic case
for needing 'keepalives' -- which later versions of putty and accuterm
provide as config options, by the way.



Reply With Quote
  #7  
Old   
Art Martz
 
Posts: n/a

Default Re: (Semi-OT) SSH across Internet difficulties - 10-12-2005 , 11:03 AM



Tedd Scofield wrote:

Quote:
hartingm wrote:
This is just a guess, but it looks like that may be occurring when the
IP address is changed.

yea that's what I would guess too. or just the ADSL modem resetting.
Either way its going to drop you briefly =(
In the openssh I'm running, the sshd config file has a keepalive flag you
can set.

Art


Reply With Quote
  #8  
Old   
Michael Nelson
 
Posts: n/a

Default Re: (Semi-OT) SSH across Internet difficulties - 10-13-2005 , 04:03 AM



hartingm wrote:
Quote:
This is just a guess, but it looks like that may be occurring when the
IP address is changed.

Ok, thanks everyone for your replies.

Basically, every time I connect, I get kicked off in this way -
sometimes within seconds, sometimes minutes.

I don't really expect an ADSL modem to reset itself, or change its IP
address within a few seconds or minutes of me connecting.

Is that unreasonable? It's my understanding that the external IP address
will only change when the Internet connection is dropped and then
reconnected.

Thanks
Michael Nelson
Softec Ltd


Reply With Quote
  #9  
Old   
Michael Nelson
 
Posts: n/a

Default Re: (Semi-OT) SSH across Internet difficulties - 10-13-2005 , 04:03 AM



Art Martz wrote:
Quote:
Tedd Scofield wrote:
hartingm wrote:
This is just a guess, but it looks like that may be occurring when the
IP address is changed.

yea that's what I would guess too. or just the ADSL modem resetting.
Either way its going to drop you briefly =(
I don't think that the modem is resetting either. If it is resetting
itself for some reason - then it's doing it very frequently.

Two other people in the office are using the same broadband connection
for their Internet connection and VoIP, and they haven't suffered any
problems at all.

Quote:
In the openssh I'm running, the sshd config file has a keepalive flag you
can set.

Art
Yes, I was hopeful when I found this setting, but I've tried with it
turned on and turned off, and it didn't seem to make a difference.

Maybe the ISP (who provided the broadband modem) may be able to help?

Thanks
Michael Nelson
Softec Ltd


Reply With Quote
  #10  
Old   
Michael Nelson
 
Posts: n/a

Default Re: (Semi-OT) SSH across Internet difficulties - 10-13-2005 , 04:03 AM



diets wrote:
Quote:
Suggest the following:
1. Get into the DSL modem setup using a browser, and change the "IP
allowed" settings to allow the IP address of the host on which D3 is
running, making "public" port 23
2. Using no-ip will then work just fine. You dont even need to run the
no-ip DUC on the server, since it will automatically map to the IP
address allocated by the ISP.
3. Remember to properly password protect your accounts, since anyone
can now "ping" your hostname, and by implication get into the database
via port 23. I change the default port to a hidden one, and also have
some stuff preventing access. I use this to do remote support for
almost all my clients in South Africa.
4. The other option would be to installa VNC on the remote site.

HTH

Diets
Thanks. I may be misunderstanding you, but this sounds like what I'm
doing already.

The DSL modem is set to forward an arbitrary port number on the outside
through to the SSH port on the D3 Linux server.

I have the no-ip DUC installed on a PC elsewhere on the subnet.

Passwords are reasonably secure already, and I'm planning to use
public/private keys when I have ironed out this problem.

It looks as though SSH will be a very handy tool for us, but this
problem is preventing us from taking advantage of it.

Thanks
Michael Nelson
Softec Ltd


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.