나는 특정 명령 세트를 실행하기 위해 shelljs를 사용 해왔다. 그래서 나는 shelljs를 통해 ssh를 통해 원격 우분투 서버에 연결을 시도했다. 이것은 내 nodej 파일입니다.ShellJs로 SSH 실행하기
var shelljs = require('shelljs');
shelljs.exec('ssh -i [path/to/pem/file] [email protected][taregt_ip]');
는하지만 난이 오류 :
Pseudo-terminal will not be allocated because stdin is not a terminal.
가 어떻게이 문제를 해결하거나 하나의 명령으로 ssh를 연결하는 다른 유틸리티가 있습니다.
편집 : 당신이 내 문제의 중복이 아닌 참조 할 수 있도록 링크를 게시하고 있습니다.
stdin이 터미널이 아니기 때문에 의사 터미널이 할당되지 않음] (https://stackoverflow.com/questions/7114990/pseudo-terminal-will-not-be-allocated-because-stdin- - not-a-terminal) –