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
- dash
- bash
- strace
- yocto
- netstat
- 소스트리
- 시스템콜
- MAN
- Git
- system call
- ubuntu
- g++
- SSH 에러
- Parent
- repo
- ssh
- gcc
- vm
- Docker
- APT
- sudo
- ubuntu20.04
- system programming
- 커널
- linux
- AZRUE
- Child
- NXP
- Go
- 상대경로
Archives
- Today
- Total
devsojang 님의 블로그
ssh 설치 및 해결책들 본문
Ubuntu 와 Debian 에서 openssh-server 설치하는 법은 다음과 같습니다.
ssh 설치
$ sudo apt install openssh-server
ssh 시작 및 활성화
$ sudo systemctl start sshd
$ sudo systemctl enable sshd
ssh 서비스 상태 확인
$ sudo systemctl status sshd
ssh 포트 (기본값 22) 확인 하는 법
$ netstat -tuln | grep 22
ssh 비밀번호 인증 사용 여부 확인 하는 법
$ sudo cat /etc/ssh/sshd_config | grep PasswordAuthentication
port 22: Connection refused 해결책
$ sudo nano /etc/ssh/sshd_config
sshd_config 파일에서 "Port 22" 부분에 주석 처리 되어 있는지 확인합니다.
you have requested strict checking 인 경우
.ssh 폴더 밑에 known_hosts 파일에서 해당 호스트키를 제거함

ssh 관련해서 내용들은 계속 업데이트 될 예정 !!!!
'Linux' 카테고리의 다른 글
| [ System Programming ] fork 함수 (0) | 2025.03.19 |
|---|---|
| gcc/g++10 설치 (feat. ubuntu 20.04) (0) | 2025.02.28 |
| System Call 확인하기 (feat. strace) (0) | 2025.01.24 |
| root 계정 활성화 (0) | 2025.01.22 |
| System Call 이란 ? (0) | 2025.01.18 |