원격 컴퓨터에 로그인하고 단일 명령으로 내 홈 디렉토리를 마운트하고 싶습니다. 나는 다음과 같이하려고했습니다 :두 개의 명령에 암호를 표시 할 수 있습니까?
echo myPassword | tee "sshfs [email protected]:/share/home/boriskh /home/boris/Work/molDyn/[email protected]" | ssh -Y [email protected]
그러나 작동하지 않습니다. tee
은 -Y 옵션을 알지 못한다고 말하며, 두 명령을 모두 인용하면 - 역시 잘못 작동합니다.
편집는 :
echo myPassword | ssh -Y [email protected]
echo myPassword | sshfs [email protected]:/share/home/boriskh /home/boris/Work/molDyn/[email protected]
Edit2가 :
는 원격 홈을 설치 (필요한 기능을 얻으려면을
나는이 thiings가 작동하지 않습니다 별도로 넣어 발견 또한 암호 프롬프트가없는 단일 명령으로)에 로그인 할 수 있습니다 (패스 프레이즈없이 - Enter
입력). 코드로) :
ssh-keygen
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]
그렇습니다. 원하는 기능이 달성되어 그 후 :
sshfs [email protected]:/share/home/boriskh /home/boris/Work/molDyn/[email protected] && ssh -Y [email protected]
그것은 잘못 작동합니까? –