Difference between revisions of "Enable SSH"

From SME Server
Jump to navigationJump to search
m (RequestedDeletion moved page SSH:enable SSH to Enable SSH: test)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
By default SME Server ssh access is '''disabled'''. The preferred way to enable ssh access is via the server manager's remote access section. As an alternative (if you do not yet have server manager access via https, ssh access can also be enabled via the command line:
+
By default ssh access to SME Server is ''disabled''. The preferred way to enable ssh access is via the server manager's remote access section. As an alternative (if you do not yet have server manager access via https) ssh access can also be enabled via the command line:
 
  db configuration setprop sshd status enabled
 
  db configuration setprop sshd status enabled
 
  db configuration setprop sshd PermitRootLogin yes
 
  db configuration setprop sshd PermitRootLogin yes
 
  db configuration setprop sshd acccess public
 
  db configuration setprop sshd acccess public
 
  db configuration setprop sshd PasswordAuthentication yes
 
  db configuration setprop sshd PasswordAuthentication yes
 +
and to reconfigure and restart ssh according to your new settings, followed by the command:
 
  /sbin/e-smith/signal-event remoteaccess-update
 
  /sbin/e-smith/signal-event remoteaccess-update
  
 +
The above commands can also be formated into 1 single command:
 +
db configuration setprop sshd status enabled PermitRootLogin yes access public PasswordAuthentication yes
 +
and to reconfigure and restart ssh according to your new settings, followed by the command:
 +
/sbin/e-smith/signal-event remoteaccess-update
  
 
Allow ssh access in public or private mode : '''public'''= all networks (internet), '''private'''= only your local network
 
Allow ssh access in public or private mode : '''public'''= all networks (internet), '''private'''= only your local network
Line 12: Line 17:
  
 
[[Category:SSH]]
 
[[Category:SSH]]
 +
 +
{{#set:Has service=ssh
 +
|Has function=Remote Access
 +
|Has TCPPorts=yes
 +
|Has UDPPorts=no
 +
|Has topic security=yes
 +
|Is Useful Command=yes
 +
}}

Latest revision as of 11:47, 12 January 2015

By default ssh access to SME Server is disabled. The preferred way to enable ssh access is via the server manager's remote access section. As an alternative (if you do not yet have server manager access via https) ssh access can also be enabled via the command line:

db configuration setprop sshd status enabled
db configuration setprop sshd PermitRootLogin yes
db configuration setprop sshd acccess public
db configuration setprop sshd PasswordAuthentication yes

and to reconfigure and restart ssh according to your new settings, followed by the command:

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

The above commands can also be formated into 1 single command:

db configuration setprop sshd status enabled PermitRootLogin yes access public PasswordAuthentication yes

and to reconfigure and restart ssh according to your new settings, followed by the command:

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

Allow ssh access in public or private mode : public= all networks (internet), private= only your local network

db configuration sshd access public
signal-event remoteaccess-update