Koozali.org: home of the SME Server

Allow user SSH access from Server-Manager

Offline NickCritten

  • *
  • 245
  • +0/-0
Allow user SSH access from Server-Manager
« on: April 25, 2006, 11:59:52 AM »
Hi All,

I set up some of my remote users with SSH access so that they can RemoteDesktop over SSH to a PC inside the LAN.

Is anyone aware of a Contrib / Server-Manager hack I can use to add a tickbox or similar to the User part of Server-manager that will change the users shell to /bin/bash  ?

I'm perfectly capable of doing it from CLI, but the panel option would be very nice :-)

Cheers,
...
Nick

"No good deed goes unpunished." :-x...

Offline NickCritten

  • *
  • 245
  • +0/-0
Allow user SSH access from Server-Manager
« Reply #1 on: April 25, 2006, 12:03:41 PM »
Also is anyone aware of a very restrictive shell I could install, that would allow tunneling but very little else?

Cheers,
...
Nick

"No good deed goes unpunished." :-x...

Offline crazybob

  • ****
  • 894
  • +0/-0
    • Stalzer R&D
Allow user SSH access from Server-Manager
« Reply #2 on: April 25, 2006, 02:49:54 PM »
You can use the user remote access contrib from dungog.net to easily change the shell from server manager. As for a more restrictive shell, I do not know.

Have you considered using vpn to allow network access. That would let them connect to the network, but keep them from a CLI on the server
If you think you know whats going on, you obviously have no idea whats going on!

Offline NickCritten

  • *
  • 245
  • +0/-0
Allow user SSH access from Server-Manager
« Reply #3 on: April 25, 2006, 03:13:18 PM »
Thanks I'll have a look at the dungog.net contrib.

I don't use VPNs for remote users as:

A) Too Flakey
B) Too Complex

With an ssh tunnel I can set up their laptops with Tunnelier (Freeware), which establishes the SSH, and the tunnel, then launches Remote Desktop,  all from one double-click.

Nice and easy and no support headaches for me.
...
Nick

"No good deed goes unpunished." :-x...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Allow user SSH access from Server-Manager
« Reply #4 on: April 25, 2006, 11:53:29 PM »
Quote from: "NickCritten"
Also is anyone aware of a very restrictive shell I could install, that would allow tunneling but very little else?


Are the restrictions of the default shell rssh not sufficient?

http://www.pizzashack.org/rssh/

Offline NickCritten

  • *
  • 245
  • +0/-0
Allow user SSH access from Server-Manager
« Reply #5 on: April 26, 2006, 12:46:48 AM »
Quote from: "CharlieBrady"
Quote from: "NickCritten"
Also is anyone aware of a very restrictive shell I could install, that would allow tunneling but very little else?


Are the restrictions of the default shell rssh not sufficient?

http://www.pizzashack.org/rssh/


rssh doesn't allow tunneling
...
Nick

"No good deed goes unpunished." :-x...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Allow user SSH access from Server-Manager
« Reply #6 on: April 26, 2006, 12:52:58 AM »
Quote from: "NickCritten"

rssh doesn't allow tunneling


The shell doesn't do tunnelling - sshd does.

Offline NickCritten

  • *
  • 245
  • +0/-0
Allow user SSH access from Server-Manager
« Reply #7 on: April 26, 2006, 01:25:03 AM »
Quote from: "CharlieBrady"
Quote from: "NickCritten"

rssh doesn't allow tunneling


The shell doesn't do tunnelling - sshd does.


Thats only half true... sshd creates one end of the tunnel, usually putty creates the other, and when putty logs onto rssh, it gets kicked out immediately.

As it happens I have always tested the tunnels with putty, and then set them up on tunelier once I've verified they work OK...  I just tried establishing a session to a user set up with rssh straight from tunnelier and it did bring the tunnel up.

I was actually under the impression that standard users had their shell set to null, as they were in SME 6.  I hadn't known about rssh until you mentioned it.
...
Nick

"No good deed goes unpunished." :-x...