ssh를 사용한 서버 접속
$ssh username@hostaddress.ac.kr
*접속 종료: $exit

scp로 파일 전송하기
로컬 -> 서버
$scp [option] 현재파일주소 username@hostaddress.ac.kr:옮길파일위치[directory까지]
서버 -> 로컬
$scp [option] username@hostaddress.ac.kr:현재파일주소 옮길파일위치[directory까지]

*options
        -P ####: 포트번호
        -p : 원본파일 수정/사용시간 및 권한을 유지
        -r : 하위 디렉토리 및 파일 모두 복사

'Programming' 카테고리의 다른 글

[linux] bash에서 계산하기, bash calculation  (0) 2017.08.04
[linux] 간단한 vim조작법  (0) 2017.08.04
[linux] bash ls 색상 바꾸기  (0) 2017.08.04
[linux]파일 찾기 find  (0) 2017.08.03
executable file 만들기  (0) 2017.08.03

+ Recent posts