Centos enable ssh for new virtual machine

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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
LORY

A Senior Software Developer/Body builder . to help others enjoy coding and stay healthy