Home>Article>Operation and Maintenance> What does ssh mean in linux

What does ssh mean in linux

WBOY
WBOY Original
2021-12-23 10:06:36 8579browse

SSH in Linux is the abbreviation of "Secure Shell". It is a security protocol based on the application layer and transport layer. It is used for encrypted login between computers; ssh can both remotely connect to the server and You can use the ssh protocol to transmit data and provide a more secure SFTP service.

What does ssh mean in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What does ssh mean in linux

Simply put, SSH (Secure Shell Protocol) is a network protocol used between computers encrypted login. By default, the SSH service provides two service functions. One is to provide a service similar to the telnet remote online server, that is, the SSH service. The other is the sftp-server, which is similar to the FTP service. It uses the SSH protocol to transmit data, providing a more secure SFTP service.

Reminder: The SSH client (ssh command) includes a very useful remote secure copy command scp, which also works through the ssh protocol.

SSH is the abbreviation of Secure Shell, developed by the Network Working Group of the IETF;

SSH is a security protocol based on the application layer. SSH is a more reliable protocol designed to provide security for remote login sessions and other network services. Using the SSH protocol can effectively prevent information leakage during remote management. SSH was originally a program on UNIX systems and quickly expanded to other operating platforms.

SSH, when used correctly, can close holes in your network. SSH clients are available for a variety of platforms. Almost all UNIX platforms—including HP-UX, Linux, AIX, Solaris, Digital UNIX, Irix, and others—can run SSH.

The ssh command is used to remotely log in to the Linux host.

Common format: ssh [-l login_name] [-p port] [user@]hostname
You can use man ssh to view more details.

If you do not specify a user, the root account will be used to log in by default

  ssh 192.168.0.15

Specify the user:

 ssh -l root 192.168.0.15 ssh root@192.168.0.15

If you have modified the ssh login port, you can:

 ssh -p 521 192.168.0.15 ssh -l root -p 521 192.168.0.15 ssh -p 521 root@192.168.0.15

Additionally modify it Configuration file /etc/ssh/sshd_config, you can change the ssh login port and disable root login. Changing the port can prevent port scanning. (The file /etc/ssh/sshd_config is for the server, and /etc/ssh/ssh_config is for the client. Use the scanning port software nmap to install yum install nmap -y, nmap and ip or domain name -p 1-65535)

Edit configuration file:

vim /etc/ssh/sshd_config

Find #Port 22, remove the comment, and change it to a three-digit port:

Port 521

Find #PermitRootLogin yes, remove it Comment, modified to:

PermitRootLogin no

Restart sshd service:

 service sshd restart <#我喜欢用/etc/init.d/ssh restart因为这样不容易出错,可以tab到。

Successful restart: Stopping sshd: [ OK ]
Starting sshd: [ OK ]

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of What does ssh mean in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn