Basic SSH Commands That You Should Know About
Created on 26 January, 2023 • Technolgy • 486 views • 1 minutes read
Basic SSH Commands That You Should Know About
ssh
: Connect to a remote server using the SSH protocol. Syntax:ssh [username]@[hostname or IP address]
scp
: Copy files between a local and a remote server using the SSH protocol. Syntax:scp [file] [username]@[hostname or IP address]:[path]
ssh-keygen
: Generate a new SSH key pair for secure authentication. Syntax:ssh-keygen -t [type of key] -b [key size] -C [comment]
ssh-copy-id
: Add a public key to the authorized keys on a remote server, allowing for passwordless authentication. Syntax:ssh-copy-id [username]@[hostname or IP address]
sftp
: Connect to a remote server and transfer files using the SFTP protocol. Syntax:sftp [username]@[hostname or IP address]
ssh-add
: Add a private key to the SSH authentication agent, allowing for passwordless authentication. Syntax:ssh-add [path to private key]
ssh-agent
: Start the SSH authentication agent, which manages private keys for passwordless authentication. Syntax:ssh-agent
ssh-keyscan
: Add a remote server's host key to the known hosts file, allowing for secure connections to that server. Syntax:ssh-keyscan [hostname or IP address]
exit
: Close the SSH connection and exit the remote terminal. Syntax:exit
logout
: Close the SSH connection and exit the remote terminal. Syntax:logout
Please note that these are basic commands and there are many other commands and options that can be used with SSH.
Popular posts
-
Coin Master free spins & coins daily links January 2023Games • 2,781 views
-
AI in Healthcare: Advancements and ChallengesTechnolgy • 1,615 views
-
7 Simple Steps to Rank Number 1 in Google SearchTechnolgy • 1,297 views
-
E-commerce EvolutionTechnolgy • 989 views
-