Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2019-10-31 13:27:19
Size: 89
Editor: Sciuro
Comment:
Revision 4 as of 2019-12-10 11:39:29
Size: 691
Editor: Sciuro
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= SSH = #acl All:
#lang en
Line 3: Line 4:
== Config file ==
Portforwarding
<<TableOfContents()>>

== Config files ==
This is an example of a personal configfile in your ''.ssh/config''.
Line 6: Line 9:
LocalForward 8443 localhost:443 Host server
  hostname 1.2.3.4
  user username
  port 2222
  
LocalForward 8443 localhost:443
Line 8: Line 15:

== Restricted shell ==
This example shows us a ssh server where you can login, but have no rights at all to do anything, except restricted portforwarding. AllowTcpForwarding has to be enabled for the use of PermitOpen.
{{{
Match User testuser
   AllowTcpForwarding yes
   X11Forwarding no
   PermitTunnel no
   GatewayPorts no
   AllowAgentForwarding no
   PermitOpen localhost:80
   ForceCommand read -p "Press enter to exit"
}}}

Config files

This is an example of a personal configfile in your .ssh/config.

Host server
  hostname 1.2.3.4
  user username
  port 2222
  LocalForward 8443 localhost:443

Restricted shell

This example shows us a ssh server where you can login, but have no rights at all to do anything, except restricted portforwarding. AllowTcpForwarding has to be enabled for the use of PermitOpen.

Match User testuser
   AllowTcpForwarding yes
   X11Forwarding no
   PermitTunnel no
   GatewayPorts no
   AllowAgentForwarding no
   PermitOpen localhost:80
   ForceCommand read -p "Press enter to exit"

Howto/SSH (last edited 2022-04-28 14:06:51 by Burathar)