ssh - Gakgu/Gakgu.github.io GitHub Wiki
๊ฐ์
Secure Shell์ ์ฝ์๋ก ์๊ฒฉ์ผ๋ก ๋ค๋ฅธ ์ปดํจํฐ์ ์ ์ํ ์ ์๊ฒ ํด์ฃผ๋ ํ๋ก๊ทธ๋จ์ด๋ค.
ssh server
์๋น์ค ํ์ฑํ
$ systemctl start sshd.service
$ systemctl enable sshd.service
GUI ํ์ฉ
/etc/sshd/sshd_config ์ ๋ค์๊ณผ ๊ฐ์ ๋ด์ฉ ์ถ๊ฐ ํน์ ์ฃผ์ ์ ๊ฑฐ
X11Forwarding yes
ssh client
openssh
ssh -p -X 22 [email protected]
iPuTTY
putty๋ ์๋์ฐ์ฉ ssh ํด๋ผ์ด์ธํธ ํ๋ก๊ทธ๋จ์ด๋ค.
- xming ์ค์น ๋ฐ ์คํ(์ ํ)
- Connection - SSH- X11 ์์ X11forwarding ์ฒดํฌ X display location์ localhost:0.0 ์ ๋ ฅ
๊ธฐํ ์ฌ์ฉ๋ฒ
-
ํ์ผ ๋ณด๋ด๊ธฐ
$ scp File [email protected]:Directory
-
ํ์ผ ๋ฐ๊ธฐ
$ scp [email protected]:File Directory