Koozali.org: home of the SME Server

Remote SSH

Offline Necromatic

  • 2
  • +0/-0
Remote SSH
« on: March 02, 2009, 05:52:02 AM »
Hello everyone,

I've checked the FAQ HowTo section on remote login into SME Server via ssh and didn't come up with much.  I understand how to remote in from computers on the local network (which is easy through the server-manager) but not from the Internet facing NIC

My sme server is running as a gateway and I'm using DynDNS.

When I try to connect from school I receive an error on the lines of:  "Connection refused by host."

Can a guru point me in the right direction?  And again, sorry if I missed a link somewhere describing a resolve to my issue.

Thanks in advance.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Remote SSH
« Reply #1 on: March 02, 2009, 07:04:41 AM »
Necromatic

The manual would be a better place to read.
http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter11


Practical tip, download putty.exe (search Google for it) & install to client.
Enable ssh for public access in server manager.
You would be wise to use Public Private keys, see the Howto, or at least limit the host IP (s) that ssh can connect from, see firewall FAQ. You might also like to change the ssh port to reduce logging of connection attempts by unauthorised users.

« Last Edit: March 02, 2009, 07:11:33 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline brianr

  • *
  • 990
  • +2/-0
Re: Remote SSH
« Reply #2 on: March 02, 2009, 01:51:09 PM »
Even better, use VPN to connect to server, then use putty. 
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Remote SSH
« Reply #3 on: March 02, 2009, 03:05:47 PM »
Even better, use VPN to connect to server, then use putty. 

I disagree..

ssh with key auth is far more secure than pptp vpn.. and, of course, you can connect from everywhere  :-)

my 2c

ciao
Stefano

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Remote SSH
« Reply #4 on: March 02, 2009, 03:12:04 PM »
I disagree..

ssh with key auth is far more secure than pptp vpn..

I agree with Stefano.

Offline brianr

  • *
  • 990
  • +2/-0
Re: Remote SSH
« Reply #5 on: March 02, 2009, 03:47:29 PM »
I agree with Stefano.

I presume your comments apply to the authentication stage rather than the data stream encryption?
 
Do you think that Key Auth _without_ a passphrase is more secure than VPN?  I am not so sure, if the client is a laptop then anyone who gets into the laptop (which depends on the strength of the login password), can then access the remote server. whereas using a VPN still requires a further password which has to be broken.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Remote SSH
« Reply #6 on: March 02, 2009, 04:03:45 PM »
Do you think that Key Auth _without_ a passphrase is more secure than VPN?

That depends on the threat model.

Quote
I am not so sure, if the client is a laptop then anyone who gets into the laptop (which depends on the strength of the login password), can then access the remote server. whereas using a VPN still requires a further password which has to be broken.

Attacker could install sniffer and then (later) steal password.

Use Key auth with passphrase.

Offline brianr

  • *
  • 990
  • +2/-0
Re: Remote SSH
« Reply #7 on: March 02, 2009, 04:07:23 PM »
Use Key auth with passphrase.

yes, that certainly _is_ more secure.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Remote SSH
« Reply #8 on: March 02, 2009, 06:09:15 PM »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Necromatic

  • 2
  • +0/-0
Re: Remote SSH
« Reply #9 on: March 03, 2009, 04:37:05 AM »
Thanks for all the helpful replies.  I won't be able to give it a shot tonight, but I'm going to give it a shot tomorrow night.  Again thanks for the quick replies!