Centos enable ssh for new virtual machine

LORY
Mar 21, 2021

ifconfig

to install ifconfig

yum install net-tools

vi /etc/sysconfig/network-scripts/ifcfg-ens33

set onboot=yes

bootproto=dhcponboot=yes

setup ssh

sudo yum -y install openssh-server openssh-clientssystemctl restart sshdsudo systemctl enable sshd

if need change ssh port

sudo vi /etc/ssh/sshd_configport {your_port}

restart service

service sshd restart

--

--

LORY

A channel which focusing on developer growth and self improvement