Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add user name for this page.
Info

Steps described in this page are run by "ubuntu", a non-root user.


Table of Contents

Create The VM(s)

...

#PurposeExample
0(Optional) Fix the "unable to resolve host" issue

ubuntu@sdnc-k8s:~$ sudo vi /etc/hosts

sudo: unable to resolve host sdnc-k8s

add the host name to the localhost in the following format:

<IP address> <hostname> localhost

1Create a password for the ubuntu user

ubuntu@sdnc-k8s:~$ sudo passwd ubuntu

Enter new UNIX password:  <enter password>

Retype new UNIX password: <repeat entering the same password>

passwd: password updated successfully

2Config ssh "PasswordAuthentication" to yes

ubuntu@sdnc-k8s:~$ sudo vi /etc/ssh/sshd_config

find PasswordAuthentication and set its value to yes, so that the line looks like

# Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes

3Restart sshd to enable the new config

ubuntu@sdnc-k8s:~$ systemctl restart sshd passwd

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to restart 'ssh.service'.
Authenticating as: Ubuntu (ubuntu)
Password:
==== AUTHENTICATION COMPLETE ===

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===

Authentication is required to restart 'passwd.service'.

Authenticating as: Ubuntu (ubuntu)

Password:

==== AUTHENTICATION COMPLETE ===

Failed to restart passwd.service: Unit passwd.service not found.ubuntu@sdnc-k8s:~$



Turn Off Firewall And Allow All Incoming HTTP Connections Through IPTABLES

...