본문 바로가기
네트워크 수업/리눅스

[리눅스] 23.04.12

by 6^6 2023. 4. 12.
728x90

 

 

교재: 

2023.04.12 - [네트워크 수업/리눅스] - [리눅스] SSH와 VNC서버 구축.pdf 23.04.12

 

 

 

 

[root@samba /]# rpm -qa | grep openssh-server
openssh-server-7.4p1-21.el7.x86_64
[root@samba /]# getenforce
Disabled
[root@samba /]# firewall-config    ==> ssh 방화벽 풀기

[root@samba /]# systemctl start sshd.service
[root@samba /]# systemctl status sshd.service

 

ps -ef | grep dnsmasq 

kill -9 숫자

 

//다시

[root@samba /]# systemctl start sshd.service
[root@samba /]# systemctl status sshd.service

 

 

 

디피-헬먼 키 교환(Diffie–Hellman key exchange)은 암호키를 교환하는 하나의 방법으로, 두 사람이 암호화되지 않은 통신망을 통해 공통의 비밀 키를 공유할 수 있도록 한다.

 

 

telnet과 ssh의 차이점은 gui밖에 없다

 

 

 

 

 

[root@samba /]# yum -y install tigervnc-server

[root@samba /]# firewall-config 

**vncpasswd : 리눅스에 연결할 때 사용되는 패스워드를 설정하는 파일이다. 처음 VNC서버를 시작할 경우 vncserver 스크립트는 이 프로그램을 이용하여 암호를 지정한다.

 

[root@samba /]# vncpasswd : 1     ==> sunny 로 로그인하겠다.
usage: vncpasswd [file]
       vncpasswd -f
[root@samba /]# vncpasswd :1
Password:   ==> (sunny0)
Verify:         ==> (sunny0)
Would you like to enter a view-only password (y/n)? y
Password:
Verify:

 

 

 

 

 

[root@samba /]# vncpasswd :1
Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Verify:
[root@samba /]# vncserver :1

You will require a password to access your desktops.

Password:
Verify:
Would you like to enter a view-only password (y/n)? y
Password:
Verify:

New 'samba:1 (sunny)' desktop is samba:1

Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/samba:1.log

 

리눅스를 GUI로 접근!


 

 

 

728x90

댓글