Changes

From SME Server
Jump to navigationJump to search
245 bytes added ,  18:16, 5 April 2013
m
→‎SSH: added ssh -t option
Line 200: Line 200:  
{{Note box| you need to forward in your router the port 22 (or whatever you decide) to your internal sme's ip and '''allow ssh in the server-manager with the root login and Password Authentication''' (Security/Remote Access menu). '''You can enhance security by disabling the root connection''' : Allow administrative command line access over secure shell NO
 
{{Note box| you need to forward in your router the port 22 (or whatever you decide) to your internal sme's ip and '''allow ssh in the server-manager with the root login and Password Authentication''' (Security/Remote Access menu). '''You can enhance security by disabling the root connection''' : Allow administrative command line access over secure shell NO
 
Keep in mind that you need '''to set the service to public access (entire internet)''' if you want to be accessible by ssh outside of you network (see the [[Denyhosts]] contrib for banning hosts which failed too many login attempts to your ssh deamon.)  }}
 
Keep in mind that you need '''to set the service to public access (entire internet)''' if you want to be accessible by ssh outside of you network (see the [[Denyhosts]] contrib for banning hosts which failed too many login attempts to your ssh deamon.)  }}
 +
 +
===Execute or run a command over ssh to a remote server and auto disconnect after quit===
 +
 +
ssh -t root@ip-sme-or-remote-hostname command
 +
 +
 +
where 'command' is the program or command to run. An example could be:
 +
 +
 +
ssh -t root@192.168.1.5 top
 +
 +
    
===Access to the server-manager through SSH===
 
===Access to the server-manager through SSH===

Navigation menu