검색결과 리스트
ssh 명령어 수행에 해당되는 글 1건
- 2016.05.10 [삽질 스토리] ssh에 연결하면서 바로 shell 수행하기!!
글
[Good Comment!!, Good Discussion!!, Good Contens!!]
[ If you think that is useful, please click the finger on the bottom~^-^good~ ]
by ace-T
[ If you think that is useful, please click the finger on the bottom~^-^good~ ]
by ace-T
상황)
쉘스크립트를 하나 받았다.
이 쉘을 수행 후에 내가 개발한 것을 돌려야 한다. 이것은 다른 서버에 있다. ssh 공개키도 설정 된 상태!
방법)
ssh를 통해 서버에 접근하여 내가 개발한 것을 돌릴수 있는 쉘 스크립트를 돌리려고 한다.
시도1)
ex) ssh acet(user name)@search-acet-good(hostname):/home/acet/dev/hello.sh a b
아래의 오류가 계속 났다..ㅠ_ㅠ..
ssh could not resolve hostname name or service not known
/etc/hosts도 확인하여 등록하였지만 계속하여 났다..OTL=3=3
아래처럼 했더니..잘되었다..
ex) ssh acet(user name)@search-acet-good(hostname) /home/acet/dev/hello.sh a b
주저리 : 분명히 : 넣어도 잘되었었는데 이상하다...쿨럭~
- END -
'OS > Shell Script' 카테고리의 다른 글
if~else + 하루 이전 날짜 구하기! (0) | 2019.01.23 |
---|---|
apache accesslog 삭제 (0) | 2018.04.24 |
[삽질 스토리] ssh에 연결하면서 바로 shell 수행하기!! (0) | 2016.05.10 |
value too great for base (error token is 08 ) (0) | 2015.02.04 |
Shell Script DeBug Mode (0) | 2012.10.29 |
shell if 문법 (2) | 2012.02.09 |
:::: facebook을 이용하시는 분들은 로그인 후 아래에 코멘트를 남겨주세요 ::::