scp
두 서버에 다른 ssh 키가 필요한 경우 서버 간 복사 명령에 어떤 인수를 사용 합니까? PC ( scp
명령을 내린 PC)에 데이터 흐름없이 서버에서 서버로 파일을 scp하는 방법을 알고 있습니다.
이 튜토리얼을 기반으로 내 시작 명령은 다음과 같습니다.
scp -r [email protected]:/home/miguel/ [email protected]:/home/miguel/
ssh-agent를 사용 하고 필요한 모든 키를 ssh-add 하십시오.
예:
# start the agent and capture its environment in the current shell
eval `ssh-agent`
# add keys needed to connect to the different accounts
ssh-add /path/to/first/ssh/key
ssh-add /path/to/second/ssh/key
# do the copying
scp [email protected]:file1 [email protected]:file2
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다