Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: festus on August 02, 2006, 06:29:19 AM

Title: PUTTY - ssh remote access - terminal shuts down
Post by: festus on August 02, 2006, 06:29:19 AM
I have configured the smeserver for remote access from the smeserver-manger page as follows:

Secure Shell Access = Allow Public Access (Entire Internet)
Allow Administrative Command Line access over secure shell = yes

I have even tried setting the following option to yes, although I
will not do that once I have resolved the access problem

Allow secure shell access using standard passwords = yes

I have also entered the IPAddress of the remote PC
under the 'remote management' option.

In spite of all this, when I try to login using putty, after i key in 'root'
and press enter, the putty window shuts down.

Has anyone else experienced this problem ?
Could someone help to figure out why I am not able to access ?

I have searched the Forum and contrib site for any information but could not find ! Am I the only one having this problem !!

URGENTLY NEED HELP !!

Festus
Title: Re: PUTTY - ssh remote access - terminal shuts down
Post by: raem on August 02, 2006, 11:19:40 AM
festus

> I have also entered the IPAddress of the remote PC
> under the 'remote management' option.

You do not need to do that for ssh access, but you do need to do it if you want server manager access from your remote location that is using a static IP.


> ... when I try to login using putty, after i key in 'root'
> and press enter, the putty window shuts down.

Check your settings in Putty, check if set to ssh2
Title: Re: PUTTY - ssh remote access - terminal shuts down
Post by: festus on August 05, 2006, 03:31:20 AM
Quote from: "RayMitchell"

Check your settings in Putty, check if set to ssh2


Yes. I have checked that I am using ssh2.

I have 2 deployment of the smeserver with exactly the same configurations. Both servers I was not able to login for several days. But for some reason, in one of the server I am able to login now, but the other one I am still not able to.

I am quite puzzled.

Is there a way I am able to capture the log of the attempt to study what could be the failure reason ?

Once the config is set in the server-manager, I expected the feature to work without any problem. But for some reason that does not seem to be the case. Did anyone else experience similar problem and found the reason please provide your feedback.

Many Thanks
Title: Re: PUTTY - ssh remote access - terminal shuts down
Post by: raem on August 05, 2006, 03:50:13 AM
festus

> Is there a way I am able to capture the log of the attempt...

All log files are available for viewing from server manager.
The "messages" log file is the common one, so look there.
Alternatively see
/var/log/messages
Title: PUTTY - ssh remote access - terminal shuts down
Post by: JonB on August 11, 2006, 06:18:19 AM
You need to have

Allow secure shell access using standard passwords = yes

unless you are using public/private keys.

http://no.longer.valid/phpwiki/index.php/SSH%20Public-Private%20Keys

It may be a few years old but I think it is still valid.

Personally I restrict SSH access to a couple of IP addresses that I control (home and office) using AllowHosts method.

Code: [Select]
sbin/e-smith/db configuration setprop sshd AllowHosts xxx.xxx.xxx.xxx

/sbin/e-smith/signal-event remoteaccess-update


where xxx.xxx.xxx.xxx is the ip address you want to allow. You can add  more than one ip address by comma seperating the addresses


The Remote Management settings are only for remote access to the Server manager and have no effect on SSH.

Jon
Title: PUTTY - ssh remote access - terminal shuts down
Post by: NickCritten on August 11, 2006, 09:58:31 AM
Quote from: "JonB"
You need to have

Allow secure shell access using standard passwords = yes

unless you are using public/private keys.

http://no.longer.valid/phpwiki/index.php/SSH%20Public-Private%20Keys

It may be a few years old but I think it is still valid.

It is still Valid - I implemented it on a server only yesterday! :-)


Festus,

The standard settings in Putty should get you connected - Just start it up, type in the FQDN / NETBIOS / IP Address of the server and click Open. Don't change any of the standard settings.

From what you describe it sounds like Standard passwords is disabled, as Jon suggested.
Title: PUTTY - ssh remote access - terminal shuts down
Post by: uniqsys on August 15, 2006, 01:41:53 AM
I am having a similar problem on a new install of SME7.0 with all the latest updates.

Remote settings are thus:

Secure shell access    Allow entire internet
Allow administrative command line access over secure shell    NO
Allow secure shell access using standard passwords    YES

FROM the local intranet I have tried to putty into the box and each time it returns "Access denied" when I key in the correct password.  I have tried other users, even root and receive the same response.

I have another 7.0 server set up the same way and have NO problem logging in locally.  I have checked and Putty is set to SSH2.

Any further ideas anyone?
Title: PUTTY - ssh remote access - terminal shuts down
Post by: raem on August 15, 2006, 03:09:21 AM
uniqsys

> Allow administrative command line access over secure shell    NO

Needs to be YES