Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ubuntu ffmpeg
- php pdf convert
- php pdf
- aws s3
- flask 시작
- mongo 설치
- aws s3 delete
- pypi 배포
- MySQL
- ubuntu nginx
- php
- vscode python
- php 암호화
- ubuntu setting
- python anaconda
- php encryption
- flask 세팅
- live drawin
- ubuntu error
- mongodb 명령어
- mongo 명령어
- hls 연동
- s3
- AWS
- jstl list
- ubuntu
- ubuntu docker
- conda lib
- 우분투 세팅
- vscode anaconda
Archives
- Today
- Total
인생을 바꾸는 기록
우분투 ssh 접속 하도록 하기 본문
1. SSH 서버 설치
# 오픈 소스 ssh 서버 설치
sudo apt-get install openssh-server
#ssh 클라이언트와 서버를 동시에 설치
sudo apt-get install ssh
2. SSH 서버 설정
# ssh 설정 파일 내용 보기
sudo vim /etc/ssh/sshd_config
3. SSH 설정 내용
# 기본적으로 포트는 22번으로 설정 되어 있음
Port 22
#해당 하는 아이피만 접속 가능
ListenAddress 0.0.0.0
#protocol 1,2 가 있으며 1은 취약하므로 2로 되어 있음
Protocol 2
#공개키
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
#클라이언트에 남아 있는 호스트 키를 삭제
ssh-keygen -R 아이디@서버주소