ssh -i publicKeyOfBastion -N -L localport(33322):targetServerIP:targetServerPort(22) idOfBastion@publicIPOfBastion
ssh -i publicKeyOfTargetServer -p localport(33322) idOfTargetServer@localhost
push scp -i publicKeyOfTargetServer -P localport(33322) -r "localFolderOrFile" idOfTargetServer@localhost:targetPath
pull scp -i publicKeyOfTargetServer -P localport(33322) -r localFolerOrFile idOfTargetServer@localhost:sourcePath
'Dev-Linux' 카테고리의 다른 글
rocky spring nginx java git vue (1) | 2023.12.20 |
---|---|
리눅스 ssh 로그아웃 시 서비스 유지하는 방법 (0) | 2023.09.13 |