Category: ssh

Crontab – Linux

Here are some commands to be used to work with crontab in Linux sudo crontab -e Open to edit crontab crontab -l List all your crontab jobs * * * * * command to be executed – – – – – | | | | | | | | | —– Day of week (0 …


Keep ssh session alive for amount of time

TienTham:~ tientham$ vi .ssh/config TienTham:~ tientham$ cat .ssh/config # — For timeout settings dev — Host * ServerAliveInterval 30 TienTham:~ tientham$ 30 is the second where you ssh client will send the request alive to your server (you can change as you want) * is for all host, you can replace it with your specific …


How to generate ssh key and upload to remote server

In order to work with a remote server, you will need to have ssh key added for authentication. This guide will go through the process of generating ssh key and adding to a server. 1- SSH key generation Open terminal ssh-keygen -t rsa -C “<your_email_which_you_used_to_register_with_the_remote_server>” -b 4096 TienTham-2:tmp tientham$ ssh-keygen -t rsa -C “<your_email_which_you_used_to_register_with_the_remote_server>” -b …


ssh to digital ocean droplet

If you have already setup for a droplet in Digital Ocean with an ssh key. Then, you can follow steps below to access to your droplet using terminal: TienTham:.ssh tientham$ ssh-add do_id_rsa Identity added: do_id_rsa (do_id_rsa) TienTham:.ssh tientham$ ssh root@<ip_address_of_your_server> You are required to change your password immediately (root enforced) Welcome to Ubuntu 18.04.1 LTS …