본문 바로가기
OS-OE Knowledge/Linux-Unix KB

Ubuntu/Useful Commands for initial Setup

by 스쳐가는인연 2018. 6. 7.

Disable/Manage Ubuntu firewall
---------------------------------------
# sudo ufw disable

or

# sudo ufw enable
# sudo ufw allow 22
---------------------------------------

Install Ubuntu Desktop(Unity)
---------------------------------------
# sudo apt-get install ubuntu-desktop
---------------------------------------

Install ssh
---------------------------------------
# sudo apt-get install openssh-server

Permit Root Access
# sudo vim /etc/ssh/sshd_config

- Edit below
PermitRootLogin prohibit-password

Approve: Yes
Deny: No
Deny if use ID and Pwd: prohibit-password
(Approve if public key)

# sudo service ssh restart
---------------------------------------

반응형