- 기존 쓰던 linux A 에 있는 파일들을 linux B에 옮기기 위함

- 외장하드나 usb를 사용하지 않고 옮기기 위해 openssh를 이용

 

1. 파일을 받고자 하는 linux B에서 openssh-server 설치하기

sudo apt-get install openssh-server

 

 

1-1. sshd-config 수정해서 권한 설정하기

 

sudo gedit /etc/sshd_config

 

파일 열리면 아래 3줄 찾아서, 주석해제하고 수정해주기

 

변경 전 : #Port 22
변경 후 : Port 22(원하는 포트 번호로 수정)

변경 전 : # PermitRootLogin prohibit-password
변경 후 : permitRootLogin yes

변경 전 : #PasswordAuthentication yes
변경 후 : PasswordAuthentication yes

 

 

1-2. ufw 이용해서, 포트 뚫어주기

 

sudo ufw allow 22
sudo ufw enable

 

 

2. 파일 보내고자 하는 linux A에서 filezilla를 통해 linux B의 ip, uname, passwd, port 입력하고 접속하기

2-1. 옮기고자하는 파일 옮기기

 

 

 

 

 

Posted by Roy로이
,