How to enable SFTP access on Gaia OS
||Security Gateway, ClusterXL, Cluster - 3rd party, VSX, Multi-Domain Management
||R77.30, R80, R80.10, R80.20, R80.30
|Platform / Model
Follow these steps to enable SFTP access for any user who does not use Clish cli.sh as the default shell:
Log in to Expert mode: HostName> expert
Backup the current SSHD configuration file:
[Expert@HostName]# cp /etc/ssh/sshd_config /etc/ssh/sshd_config_ORIGINAL
Edit the current SSHD configuration file in Vi editor:
[Expert@HostName]# vi /etc/ssh/sshd_config
Modify the current configuration using one of these two options:
Note: For details, refer to "sshd_config" manual page - refer to "Subsystem" section.
- Save the changes and exit from Vi editor.
Restart the SSHD service:
[Expert@HostName]# /etc/init.d/sshd restart
- In addition to running the above procedure, you must also change the default shell of the selected user to /bin/bash by running "set user <username> shell /bin/bash" from CLISH. To make the change permanent, run "save config" from CLISH.
- To change the default shell back to CLISH, run "set user <username> shell /etc/cli.sh" from CLISH and make the change permanent by running "save config" from CLISH.
- Make sure to configure an explicit security rule for SSH access (to this Gaia machine) on the involved Security Gateway / Cluster. SFTP operates using SSH.