0

Command SSH on CentOS

Install

sudo yum install openssh-server openssh-clients

Configuration

sudo nano /etc/ssh/sshd_config

Create ssh keygen

ssh-keygen -t rsa

Start

sudo systemctl start sshd.service

Stop

sudo systemctl stop sshd.service

Restart

sudo systemctl restart sshd.service

Enable auto start

sudo systemctl enable sshd.service

Disable auto start

sudo systemctl disable sshd.service