hbirds@hbirds-Lenovo-G580:~$ sudo chmod 0600 ssh-key-2023-01-09.key
hbirds@hbirds-Lenovo-G580:~$ ssh -p 22 ubuntu@168.138.37.60 -i ssh-key-2023-01-09.key
The authenticity of host '168.138.37.60 (168.138.37.60)' can't be established.
ED25519 key fingerprint is SHA256:eOB1P1rFAbgFtdXMvyiJKmMjQkyYBRyakwpgKQxs0yA.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '168.138.37.60' (ED25519) to the list of known hosts.
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1021-oracle aarch64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Mon Jan 9 21:51:11 UTC 2023
System load: 0.0 Processes: 155
Usage of /: 3.2% of 44.96GB Users logged in: 0
Memory usage: 1% IPv4 address for enp0s3: 10.0.0.77
Swap usage: 0%
0 updates can be applied immediately.
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
ubuntu@mydns-net:~$ exit
logout
Connection to 168.138.37.60 closed.
hostsとhostnameを確認
buntu@mydns-net:~$ cat /etc/hosts
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
127.0.1.1 mydns-net mydns-net
ubuntu@mydns-net:~$ cat /etc/hostname
mydns-net