반응형

리눅스에서 서버간에 파일 복사를 하는데 

scp [path/file] [user@destination_host]:[path_to_save_file]

====================================================
ssh: connect to host port 22: Connection timed out
lost connection

Connection timed out 에러가 났다.

 

<해결 방법>

Allow ssh to ufw will solve the problem. Run the below command to allow.

 

sudo ufw allow ssh # UFW - SSH 허용

destination host (파일 받을 서버) 터미널에서 위에 명령어를 치면 된다.

 

* 우분투의 기본적인 방화벽 : UFW

반응형