Koozali.org: home of the SME Server

SSH Access to SME6.0.1.-01

pwolsink

SSH Access to SME6.0.1.-01
« on: October 22, 2005, 05:14:15 PM »
Hi there
I installed a fresh SME 6.0.1.-01 with the Update Script available elsewhere on this site.

Everything seems to be working fine although I haven't added users/ibays yet.

I have the following problem:

Adding remote access just like the way I did with my standard SME 6.0.1-01 without the Update Script, I get access from another workstation on the same network with F-Secure and Putty. But with this new server, I can only get access from the terminal/keyboard attached to the server (thus locally)

If I go to x.x.x.x/server-manager > remote access > secure Shell Access, and deny access, then I get Access Refused from the remote workstation, If I add access allowed via Server Manager, then I get the Secure key prompt, accept it, I can add the password, but the the system keeps asking the password and I don't get access.

Any difference between this server and my original 6.0.1 is that this is a server/gateway and the original a server only. I've tried playing around by swopping the network card IP's etc, but no luck.

The sshd_config files are identical on the two machines.

Any ideas?

regards
Paul

pwolsink

SSH Access to SME6.0.1.-01
« Reply #1 on: October 22, 2005, 05:17:20 PM »
Forgot to add.  The messages log gives me this:

Oct 22 14:55:53 mygate sshd[3370]: Failed password for root from 10.0.0.102 port 2089 ssh2

while I know/triple checked that the password is ok and works fine on the terminal.

regards
Paul

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
SSH Access to SME6.0.1.-01
« Reply #2 on: October 22, 2005, 07:04:38 PM »
you probably set both servers with the same name or IP and now your SSH keys have changed. Delete your keys on the client side and you shall login, accepting the new keys.

pwolsink

SSH Access to SME6.0.1.-01
« Reply #3 on: October 22, 2005, 08:36:27 PM »
Thanks for the response, but thats not the cause.
IP and hostnames are different and deleting keys was the first I did as well.

Offline smeghead

  • *
  • 557
  • +0/-0
SSH Access to SME6.0.1.-01
« Reply #4 on: October 23, 2005, 08:25:03 AM »
.. I'd re-install ssh & rerun the update routine (just to be sure).  If you haven't kept the ssh files then first d'l them by running:

mkdir -p /root/openssh
cd /root/openssh
wget -nc -nd -S http://sme.swerts-knudsen.com/downloads/Updates/6.0.1/OpenSSH/openssh-3.9p1-1es1.i386.rpm
wget -nc -nd -S http://sme.swerts-knudsen.com/downloads/Updates/6.0.1/OpenSSH/openssh-clients-3.9p1-1es1.i386.rpm
wget -nc -nd -S http://sme.swerts-knudsen.com/downloads/Updates/6.0.1/OpenSSH/openssh-server-3.9p1-1es1.i386.rpm

then from the d/l directory ..

rpm -Uvh --replacepkgs *.rpm
/sbin/e-smith/expand-template /etc/ssh/sshd_config
/sbin/e-smith/signal-event remoteaccess-update

You could also try doing an un-install first if this still doesn't work.

I have had a client with a similar prob and he was using the numeric keypad to enter numbers but without the Numlock on (also check Capslock), doh! ;-)

HTH
..................

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
SSH Access to SME6.0.1.-01
« Reply #5 on: October 23, 2005, 04:16:51 PM »
The daemon is running and accepts connections. I had a situation where the admin password was changed using the http://SME/user-manager instead of using the user's control panel @server-manager, and since then, the admin and root users had different passwords.
Could this be the problem, where you're login in using the admin user @control-panel and the user root is required for SSH, and has a different password?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
SSH Access to SME6.0.1.-01
« Reply #6 on: October 23, 2005, 06:50:55 PM »
Quote from: "stuntshell"
The daemon is running and accepts connections. I had a situation where the admin password was changed using the http://SME/user-manager instead of using the user's control panel @server-manager, and since then, the admin and root users had different passwords.


If that happened, it's a bug. Please report it in the Bug Tracker.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
SSH Access to SME6.0.1.-01
« Reply #7 on: October 23, 2005, 11:54:27 PM »
Bug Tracker created, #0000308
@pwolsink,
could this be your problem?!