====== SSH ====== To connect to a Linux server using SSH (Secure Shell), you will need to have an SSH client installed on your computer. If you don't have an SSH client installed, you can install one such as OpenSSH or PuTTY. Once you have an SSH client installed, you can use the following steps to connect to a Linux server: - Open your SSH client. - Enter the hostname or IP address of the Linux server you want to connect to in the "Hostname" or "Server" field. - Enter the port number for the SSH service on the server (usually 22). - Enter your username for the server in the "Username" field. - Click the "Connect" or "Open" button to initiate the connection. If the server requires a password, you will be prompted to enter it. If the server uses key-based authentication, you may need to provide the path to your private key file. Once you have successfully connected to the server, you should see a command prompt where you can enter commands to interact with the server. ===== Terminal ===== When you are on a Mac oder Linux machine, you can use the terminal and connect to your server using the following command: ''ssh username@server_hostname_or_IP'' Here is an overview of some of the most commonly used options for the ssh command, along with their syntax: * '' -l, --login USERNAME'': This option allows you to specify the username to use when logging in to the server. The syntax for using this option is: ''ssh -l USERNAME server_hostname_or_IP'' * '' -p, --port PORT_NUMBER'': This option allows you to specify the port number to use for the SSH connection. The default port number for SSH is 22, but it can be changed on the server. The syntax for using this option is: ''ssh -p PORT_NUMBER server_hostname_or_IP'' * '' -i, --identity-file PATH'': This option allows you to specify the path to a private key file to use for key-based authentication. The syntax for using this option is: ''ssh -i /path/to/private_key server_hostname_or_IP'' * '' -o, --option NAME=VALUE'': This option allows you to specify options in the format ''name=value''. You can use this option to specify a variety of options, such as the number of retries to attempt when connecting to the server, the amount of time to wait between retries, or the preferred encryption algorithms to use. The syntax for using this option is: ''ssh -o "option_name=option_value" server_hostname_or_IP'' * '' -v, --verbose'': This option increases the verbosity of the ssh command, causing it to display more detailed information about the connection process. This can be useful for troubleshooting connection issues. The syntax for using this option is: ''ssh -v server_hostname_or_IP''