Setting IP Statis di ubuntu 20.10 server

0

Setting IP Statis di ubuntu 20.10 server 

Loggin menggunakan username dan password, kemudian masuk sebagai root dengan mengetik :

sudo su, kemudian enter

Ketikkan perintah :

nano /etc/netplan/00-installer-config.yaml

konfigurasi IP yang tersedia, contoh

# This is the network config written by 'subiquity'

network:

  ethernets:

    enp0s3:

      addresses: [192.168.1.3/24]

      gateway4: 192.168.1.1

      nameservers:

        addresses: [4.2.2.2, 8.8.8.8]

  version: 2

kemudian ketikkan perintah :

netplan apply

Remote ssh menggunakan command prompt di Windows

install ssh di linux

apt install openssh-server

Buka command prompt, ketikkan perintah:

ssh "namauser-ubuntu"@"no ip ubuntu"

jika error

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

Someone could be eavesdropping on you right now (man-in-the-middle attack)!

It is also possible that a host key has just been changed.

The fingerprint for the RSA key sent by the remote host is

51:82:00:1c:7e:6f:ac:ac:de:f1:53:08:1c:7d:55:68.

Please contact your system administrator.

Add correct host key in /Users/isaacalves/.ssh/known_hosts to get rid of this message.

Offending RSA key in /Users/isaacalves/.ssh/known_hosts:12

RSA host key for 104.131.16.158 has changed and you have requested strict checking.

Host key verification failed.


ketikkan perintah :

ssh-keygen -R "server hostname atau ip"


Setting IP statis di debian

masuk sebagai root di debian anda, kemudian ketikkan perintah berikut ini

nano /etc/network/interfaces

edit ip sesuai dengan kebutuhan

simpan dan keluar dari editor nano, kemudian ketikkan perintah berikut :

systemctl restart networking

Posting Komentar

0 Komentar
Posting Komentar (0)
To Top