CLI Access: Difference between revisions
migrate>Ad-B Created page with "<span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;">Using this function, you can manage console tools remotely via the SSH protocol ..." |
migrate>Ad-B No edit summary |
||
| Line 1: | Line 1: | ||
<span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;">Using this function, you can | <span style="color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;">Using this function, you can administer the system remotely with the SSH (Secure SHell) protocol. Default user is 'api' and cannot be changed - however, you can change the password.</span><br/><br/> | ||
;Allow IP | |||
:You can assign IP addresses (separated by a semicolon) which are granted access to server configuration. Empty field means no restriction. | |||
;Set port | |||
:Default port is 22223 for security reasons, because high ports are invisible to port scanners. You can change it to any port within the 1024-65535 range, except for the ports which are already used. | |||
;Password | |||
:Minimum password length is 5 characters. Be sure to use strong passwords. | |||
;Confirm password | |||
:Please retype your new password. | |||
Passwords cannot contain: | |||
<ul style="margin: 0.3em 0px 0px 1.5em; padding: 0px; color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;"> | <ul style="margin: 0.3em 0px 0px 1.5em; padding: 0px; color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;"> | ||
<li>special characters | <li>special characters: ' " ` ^ & $ # [ ] \/ | *,</li> | ||
<li>spaces</li> | <li>spaces.</li> | ||
</ul> | </ul> | ||
Example syntax of an SSH command:<br/>'''ssh -2 -p 22223 -l api ip_address command''' | |||
<ul style="margin: 0.3em 0px 0px 1.5em; padding: 0px; color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;"> | <ul style="margin: 0.3em 0px 0px 1.5em; padding: 0px; color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;"> | ||
<li>option: -2 | <li>option: '''-2''' sets the version of the ssh protocol used for the connection,</li> | ||
<li>option: -p | <li>option: '''-p''' sets the connection port,</li> | ||
<li>option: -l | <li>option: '''-l''' sets the user (the user must be '''api'''),</li> | ||
<li>option: | <li>option: '''ip_address''' sets the address of the server you want to connect to,</li> | ||
<li>option: '''command'''; use '''help''' to display all available commands.</li> | |||
</ul> | </ul> | ||
You will be asked for the | You will be asked for the password you entered in the CLI/API configuration menu. | ||
It is also possible to authenticate without a password by using the key generated after clicking '''generate and download''', or downloading a previously generated key by clicking '''download'''.On GNU/Linux systems make sure that the key file has read only rights for the owner (400). | |||
Example syntax of an SSH command using a key:<br/>'''ssh -i path_to_the_downloaded_key -2 -p 22223 -l api ip_address command''' | |||
<ul style="margin: 0.3em 0px 0px 1.5em; padding: 0px; color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;"> | <ul style="margin: 0.3em 0px 0px 1.5em; padding: 0px; color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;"> | ||
<li> | <li>option: '''-i''' sets the path to the downloaded key file,</li> | ||
<li> | <li>option: '''-2''' sets the version of the SSH protocol used for the connection,</li> | ||
<li>option: '''-p''' sets the connection port (default: 22223),</li> | |||
<li> | <li>option: '''-l''' sets the user (the user must be '''api'''),</li> | ||
<li> | <li>option: '''ip_address''' sets the IP address of the storage server you want to connect to,</li> | ||
<li> | <li>option: '''command'''; use 'help' to show all available commands.</li> | ||
<li> | |||
</ul> | </ul> | ||
<div class="locationheader" style="border-bottom-style: none; color: rgb(196, 22, 31); font-family: arial, helvetica, sans-serif; font-size: 14px;"></div> | |||
<br/> | |||
<div class="noteheader" style="border-bottom-style: none; font-weight: bold; font-style: italic; color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;">Note</div><div class="note" style="margin-left: 20px; color: rgb(0, 0, 0); font-family: arial, helvetica, sans-serif; font-size: 14px;">Every time the '''generate and download''' button is pressed, it generates a new key and the old key expires.</div><div class="locationheader" style="border-bottom-style: none; color: rgb(196, 22, 31); font-family: arial, helvetica, sans-serif; font-size: 14px;"></div> | |||
Revision as of 15:56, 12 November 2014
Using this function, you can administer the system remotely with the SSH (Secure SHell) protocol. Default user is 'api' and cannot be changed - however, you can change the password.
- Allow IP
- You can assign IP addresses (separated by a semicolon) which are granted access to server configuration. Empty field means no restriction.
- Set port
- Default port is 22223 for security reasons, because high ports are invisible to port scanners. You can change it to any port within the 1024-65535 range, except for the ports which are already used.
- Password
- Minimum password length is 5 characters. Be sure to use strong passwords.
- Confirm password
- Please retype your new password.
Passwords cannot contain:
- special characters: ' " ` ^ & $ # [ ] \/ | *,
- spaces.
Example syntax of an SSH command:
ssh -2 -p 22223 -l api ip_address command
- option: -2 sets the version of the ssh protocol used for the connection,
- option: -p sets the connection port,
- option: -l sets the user (the user must be api),
- option: ip_address sets the address of the server you want to connect to,
- option: command; use help to display all available commands.
You will be asked for the password you entered in the CLI/API configuration menu.
It is also possible to authenticate without a password by using the key generated after clicking generate and download, or downloading a previously generated key by clicking download.On GNU/Linux systems make sure that the key file has read only rights for the owner (400).
Example syntax of an SSH command using a key:
ssh -i path_to_the_downloaded_key -2 -p 22223 -l api ip_address command
- option: -i sets the path to the downloaded key file,
- option: -2 sets the version of the SSH protocol used for the connection,
- option: -p sets the connection port (default: 22223),
- option: -l sets the user (the user must be api),
- option: ip_address sets the IP address of the storage server you want to connect to,
- option: command; use 'help' to show all available commands.