SSH (Secure Shell), sometimes referred to as Secure Socket Shell, is a protocol which allows you to connect securely to a remote computer or a server by using a text-based interface. The service was created as a secure replacement for the unencrypted Telnet and uses cryptographic techniques to ensure that all communication to and from the remote server happens in an encrypted manner.
By default SSH is not enabled on your GigaDrive Slot. In order to enable SSH, you need install any one of the available openssh apps.
Please check our application chart to see which GigaDrive Plans are eligible to install this application.
openssh
.openssh-alpine
, otherwise choose openssh-debian
or openssh-ubuntu
. If you require a range of external ports then use openssh-ubuntu
only.Navigate to the Application Manager page of your dashboard.
Search for openssh. click the button to get your SSH information. You should have a popup window like the following image. Note down your SSH Hostname, IP, Port, Username, Password.
Run
dialog.cmd
and press OK
.ssh USERNAME@HOSTNAME -p SSH_PORT
Replace
USERNAME
,HOSTNAME
andSSH_PORT
with actual values from the previous step.
Yes
and press Enter.Download the latest release of PuTTY from here.
Install and run putty. You should have the following window.
Fill in the hostname and port field which you have obtained from the previous step and click open. If you get a security alert popup window, click yes.
When prompted with login as, enter your GigaDrive username. Then you will be asked for your password. Enter the password you have obtained from step 3.
While typing your SSH password, you will not be able to see the characters you typed. This is normal and it is a security precaution.
If you get
Access Denied
error on the first attempt, then paste the password again and hit Enter.
Openssh is builtin in Linux and Mac operating systems, so you can connect to the SSH by taking the following steps.
ssh USERNAME@SSH_HOST -p SSH_PORT
Make sure to replace the USERNAME, SSH_PORT and SSH_HOST with your account username, your ssh hostname and ssh port that you can get by following the step 3 of the previous guide.
A service (also known as daemon) is a computer program that runs as a background process, rather than being under the direct control of an interactive user.
Systemd is not supported. Use supervisord instead.
/etc/supervisor/conf.d
directory, normally with one program per file and a .conf
extension. A simple configuration for our script, saved at /etc/supervisor/conf.d/SERVICE_NAME.conf
, would look like so:[program:SERVICE_NAME]
command=/path/to/your/program
user=REPLACE_THIS_WITH_USERNAME
autostart=true
autorestart=true
stderr_logfile=/config/app.stdout.log
stdout_logfile=/config/app.stdout.log
Replace
SERVICE_NAME
with your program name.
sudo supervisorctl reread
sudo supervisorctl update
For more information checkout the documentation of supervisord.
Use this if you are good experience with linux. If you misconfigure a service or your service fails to execute, then OpenSSH will not start/reboot.
SERVICE_NAME=SET_YOUR_SERVICE_NAME
sudo mkdir -p /etc/services.d/$SERVICE_NAME
sudo touch /etc/services.d/$SERVICE_NAME/run
sudo chmod +x /etc/services.d/$SERVICE_NAME/run
sudo nano /etc/services.d/$SERVICE_NAME/run
sudo s6-svstat /var/run/s6/services/$SERVICE_NAME/
Make sure to replace SERVICE_NAME with the actual service name.
If your service is down, you can troubleshoot the issue by executing the run script directly
sudo /etc/services.d/$SERVICE_NAME/run
#!/usr/bin/with-contenv bash
exec s6-setuidgid YOUR_SSH_USERNAME nginx -g "daemon off;" >> /config/SERVICE_NAME.stdout.log 2>&1
Make sure to replace YOUR_SSH_USERNAME with the actual username.
ls -l /etc/services.d
- Starting a service
sudo s6-svc -u /var/run/s6/services/SERVICE_NAME
- Stopping a service
sudo s6-svc -d /var/run/s6/services/SERVICE_NAME
- Restarting a service
sudo s6-svc -r /var/run/s6/services/SERVICE_NAME
sudo rm -rf /etc/services.d/SERVICE_NAME
sudo rm -f /etc/services.d/app/SERVICE_NAME.dep
If you click the Access Info button to open the Access Info page for your SSH app, then you will notice a table of IPv4 ports consisting of External and Internal Ports.
Internal ports are ports that you should use within the configuration file while setting up an app. Then you can access that app using the corresponding external port.
* * * * * /usr/bin/touch /tmp/cron.test >/dev/null 2>&1
*/5 * * * * /usr/bin/touch /tmp/cron.test >/dev/null 2>&1
*/10 * * * * /usr/bin/touch /tmp/cron.test >/dev/null 2>&1
*/5 * * * * /usr/bin/touch /tmp/cron.test >/dev/null 2>&1
0 * * * * /usr/bin/touch /tmp/cron.test >/dev/null 2>&1
0 */6 * * * /usr/bin/touch /tmp/cron.test >/dev/null 2>&1
0 */6 * * * /usr/bin/touch /tmp/cron.test >/dev/null 2>&1
0 0 * * * /usr/bin/touch /tmp/cron.test >/dev/null 2>&1
0 0 */7 * * /usr/bin/touch /tmp/cron.test >/dev/null 2>&1
0 0 1 * * /usr/bin/touch /tmp/cron.test >/dev/null 2>&1
EDITOR=nano crontab -e
To change the SSH password for a user on Ubuntu, follow these steps:
Log in to the Server:
Use SSH to log in to the server if you’re not logged in already.
Change the Password:
Use the passwd
command followed by the username to change the password. For example, to change the password for the current user:
passwd
Or to change it for another user (if you have root privileges):
passwd USERNAME
Replace
USERNAME
with your actual username