๊ด€๋ฆฌ ๋ฉ”๋‰ด

JiYoung Dev ๐Ÿ–ฅ

[Linux] Telnet ์›๊ฒฉ์ ‘์† (2023.08.14) ๋ณธ๋ฌธ

full stack/Linux

[Linux] Telnet ์›๊ฒฉ์ ‘์† (2023.08.14)

Shinjio 2023. 8. 14. 10:33
-- 1. ์›๊ฒฉ์ง€ ์‹œ์Šคํ…œ ๊ด€๋ฆฌ์ž --  461
---------------------
-- ํ…”๋ ›(telnet)
  dnf install telnet-server
-- ์„œ๋น„์Šค ์‹œ์ž‘
  systemctl start telnet.socket
-- ์„œ๋น„์Šค ์ƒํƒœํ™•์ธ  
  systemctl status telnet.socket
-- ํ…”๋ ›์šฉ ์‚ฌ์šฉ์ž์ƒ์„ฑ
  adduser inho
  passwd inho
-- ๋ฐฉํ™”๋ฒฝ open  
  -- gui ์„ค์ •
  firewall-config
  -- cli ์„ค์ •
  firewall-cmd --add-service=telnet
  firewall-cmd --add-port=23/tcp
  firewall-cmd --permanent --add-service=telnet
  firewall-cmd --reload
 
-- xrdp - x์œˆ๋„์šฐ ์—ฐ๊ฒฐ
 
   dnf -y install epel-release
   dnf -y install xrdp
   dnf -y install xrdp*.rpm
 
๋ฐฉํ™”๋ฒฝ port : 3389
   
-- ์žฌ๋ถ€ํŒ…ํ›„์—๋„ ํ…”๋ ›์„œ๋ฒ„์˜ ๊ตฌ๋™์„ค์ •
  systemctl enable telnet.socket

 

ํŒจํ‚ค์ง€ ์„ค์น˜ ํ”„๋กœ์„ธ์Šค 

etc/yum.repos.d ๋””๋ ‰ํ† ๋ฆฌ์—์„œ ์ฐพ์Œ → ์—†์œผ๋ฉด ๋“ฑ๋ก๋œ url ์ฃผ์†Œ์˜ ์ €์žฅ์†Œ์—์„œ ์ฐพ์•„์„œ ์„ค์น˜

 

 

 

 

root ๊ฒฝ๋กœ, root ๊ณ„์ •์—์„œ ์ง„ํ–‰

 

dnf๋กœ telnet-server ์„ค์น˜

 

dnf -y install telnet-server

 

 

 

์›๊ฒฉ์ ‘์†์„ ์œ„ํ•ด ๊ณ„์ • ์ƒ์„ฑ 

 

adduser jyshin	 
passwd

 

 

๋ฐฉํ™”๋ฒฝ open

 

firewall-config

 

์„ค์ • - ์˜๊ตฌ์ 

public - telnet ์ถ”๊ฐ€

 

 

 

 

์„œ๋ฒ„์˜ ip๋กœ puTTY ์ ‘์† ํ›„ ๊ณ„์ • ์ ‘์† 

 

์„œ๋ฒ„ ip ํ™•์ธ : ifconfig

 

 

puTTY ์ ‘์†

 

 

telnet.socket : 23๋ฒˆ ํฌํŠธ

 

ssh ๋Š” 22๋ฒˆ ํฌํŠธ 

 

 

ssh ํ•ด์‹œ์ฝ”๋“œ๋ฅผ ๋ฐ›์•„์„œ ๊ณต๊ฐœํ‚ค๋ฅผ ๋ฐ›์•„์„œ packet ์œผ๋กœ ๋„˜๊ธฐ๊ฒ ๋‹ค๋Š” ์˜๋ฏธ >  accept

 

 

GUI ํ™˜๊ฒฝ์—์„œ ์›๊ฒฉ๋ฐ์Šคํฌํ†ฑ ์—ฐ๊ฒฐ > port ์—ด๊ธฐ

 

   dnf -y install epel-release
   dnf -y install xrdp
   dnf -y install xrdp*.rpm