'programming/os'에 해당되는 글 2건

  1. 2017.03.17 [LINUX]VirtualBox Ubuntu 다중 Network 설정
  2. 2017.03.17 [LINUX]root 계정 설정

1. 환경

- Local : windows 7 x64

- VirtualBox : ubuntu server 64bit

- 로컬 영역 : 내부망

- 무선 영역 : 외부망


2. VirtualBox Network 설정

- 어댑터1 : 브리지 어댑터 (Wireless)



- 어댑터2 : 호스트 전용 어댑터 (모뎀 : VitualBox Host-Only Ethernet Adapter)



3. 로컬 네트워크 설정

- VirtualBox Host-Only Network



3. ubuntu network interface 설정

~# vi /etc/network/interfaces


# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).


source /etc/network/interfaces.d/*


# The loopback network interface

auto lo

iface lo inet loopback


# The primary network interface

auto enp0s3

iface enp0s3 inet dhcp


auto enp0s8

iface enp0s8 inet static

address 192.168.100.100

netmask 255.255.255.0

#gateway 192.168.100.1


~# /etc/init.d/networking restart


enp0s8 에 gateway를 설정하면 외부망 연결이 안됨.

Posted by superrmoon
,

1. root 계정 password 설정


~# sudo passwd root


2. ssh 접속 설정


~# vi /etc/ssh/sshd_config


.

.

.

# Authentication:

LoginGraceTime 120

#PermitRootLogin prohibit-password

PermitRootLogin yes

StrictModes yes

.

.

.


3. 서비스 재시작


~# service ssh restart 


Posted by superrmoon
,