Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

sudo apt install ssh -y
install sshd

sudo apt update -y

sudo apt install sshd -y

set password

passwd

old password:  just press ENTER

enter the password: juniper123


set root password

sudo passwdinstall sshd
listen port 22


Code Block
titlenmap
lubuntu@lubuntu:~$ nmap localhost
Starting Nmap 7.91 ( https://nmap.org ) at 2020-12-18 08:28 UTC
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00013s latency).
Not shown: 998 closed ports
PORT    STATE SERVICE
22/tcp  open  ssh
631/tcp open  ipp

Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds
lubuntu@lubuntu:~$