mirror of
https://github.com/IntenseWebs/servercode.git
synced 2024-07-07 04:43:00 -05:00
Updated Networking & SSH help
This commit is contained in:
parent
ff89e1a1f6
commit
87a3eb0110
|
@ -1,8 +1,10 @@
|
|||
nmcli connection show
|
||||
sudo dnf update && sudo dnf upgrade
|
||||
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html-single/configuring_and_managing_networking/index
|
||||
# Shell 'nmtui' is recommended method if if installing BRIDGE with slave network apapter using static IP address. Below method is manual edit of config files.
|
||||
|
||||
sudo hostnamectl set-hostname new.name
|
||||
|
||||
sudo vi /etc/resolv.conf
|
||||
domain yourdomainname.com
|
||||
search yourdomainname.com
|
||||
|
@ -17,9 +19,6 @@ sudo vi /etc/hostname
|
|||
# ADD/CHANGE
|
||||
ctp1.intensewebs.com
|
||||
|
||||
sudo systemctl restart networking
|
||||
|
||||
|
||||
ip link list
|
||||
ip link show
|
||||
sudo nmcli device status
|
||||
|
@ -35,3 +34,5 @@ sudo nmcli connection modify Example-Connection ipv4.dns-search example.com
|
|||
sudo nmcli connection modify Example-Connection ipv6.dns-search example.com
|
||||
sudo nmcli connection up Example-Connection
|
||||
sudo nmcli device status
|
||||
|
||||
sudo systemctl restart networking
|
|
@ -37,7 +37,7 @@ vi /etc/ssh/sshd_config
|
|||
PasswordAuthentication no
|
||||
PermitRootLogin no
|
||||
|
||||
systemctl restart ssh
|
||||
systemctl restart sshd
|
||||
|
||||
# TO REMOVE OLD KEYS FROM known_hosts file
|
||||
ssh-keygen -f "/home/privacy/.ssh/known_hosts" -R "192.168.1.200"
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user