ssh 별명 만들어 타이핑 덜 치기

watch_later 토요일, 12월 16, 2017

ssh 접속하러 마우스 움직이는 것도 귀찮을 때가 있다.
모니터 32 인치를 쓰니까 마우스를 많이 움직이는 것이 힘들고 성가시다.

그럼 콘솔에서 쳐야하는데, 긴 주소를 매번 친다는 것도 매우 힘들고 성가시다.

여튼..

$ cd ~/.ssh
$ cat > config
^C - 컨트롤 C 를 누르면 쉘로 나감

$ sudo nano ~./ssh/config
$ sudo nano config

다음 내용을 붙여넣고 컨트롤 o 눌러서 저장

host pi
        HostName raspberrypi.local
        User pi

이제 주소대신 두 글자 치면 됨.

$ ssh pi
pi@raspberrypi.local's password:

추가

아래 분 글로 less type do more.
http://osxdaily.com/2011/04/05/setup-ssh-config-fie/
http://www.haruair.com/blog/2219



sentiment_satisfied Emoticon