프로그램 사용/Putty2011. 6. 21. 09:06
맨날 헷갈리는데.. 이넘의 Local / Remote 개념이란 -_-

아무튼, 아래와 같이 putty에서 Local 로 설정을 하고
Local의 5900번 포트를 localhost의 5900번(여기서 localhost는 putty가 실행한 pc)
그리고 Add를 누르면 게임끝~!


vnc에서는 이제 귀차니즘 100% 발동하여 localhost만 쳐주면 된다.


Posted by 구차니
서버를 교체하거나, 서버의 아이피 변경으로 인해 기존의 서버의 아이피와 겹칠경우
${HOME}/.ssh/known_hosts
파일에 이전의 정보가 남아있는 바람에 생기는 에러이다.
"에러" 라고 한이유는, 경고라고 해놓고 접속이 안되기 때문이다.

해결 방법은, 위의 파일을 삭제하거나(그러면 다음 접속시 키를 다 받아야 하는 귀차니즘이)
해당 서버의 아이피가 들어있는 줄을 지우면 된다.

$ ssh USERID@SERVER_IP
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
5b:c1:63:e6:6c:53:30:ea:fd:fd:f3:72:22:a0:a1:aa.
Please contact your system administrator.
Add correct host key in /home/USERID/.ssh/known_hosts to get rid of this message.
Offending key in /home/USERID/.ssh/known_hosts:2
RSA host key for SERVER_IP has changed and you have requested strict checking.
Host key verification failed.

Posted by 구차니
SSH로 서버에 접속 후,
서버에서 로컬의 다른 서버로  SSH 접속을 하는데 아래와 같은 경우를 만났다.

[userid@hostname ~]$ ssh localserver_ip
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00.
Please contact your system administrator.
Add correct host key in /home/userid/.ssh/known_hosts to get rid of this message.
Offending key in /home/userid/.ssh/known_hosts:1
RSA host key for 192.168.10.10 has changed and you have requested strict checking.
Host key verification failed.

해결방법은, 그냥 저 파일을 지우면 된다.
(아마.. 지금까지 접속했던 서버들에 대한 RSA 키도 전부 삭제 되므로, 다음번 접속시 전부 키를 받을 거냐고 물어볼 듯 하다)
Posted by 구차니
우분투에 ssh를 설치후 접속하면 아래와 같이 무진장 긴 메시지가 나온다

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/

/etc/motd.tail 파일을 수정하면 우분투 ssh 접속시 나오는 메시지를 바꿀수 있다고 한다.
하지만 데비안 계열은 이 내용을 수정하는 것은 불법이라고 하는데.. 조금 짜증나도 냅둬야 하나?

[링크: http://www.coveredjin.com/tag/ssh%20%EB%A9%94%EC%84%B8%EC%A7%80]

2010.02.04 추가
/etc/issue 파일에 일반적으로 로그인시 출력하는 메시지가 들어있다.
Posted by 구차니
sudo apt-get 방식으로 편하게 설치가 가능하다.

패키지 이름은 ssh 이며
sudo apt-get install ssh
라고 입력하면 바로 설치 된다.

ubuntu 8.10 에서 실행시 별다른 설정없이 기본 포트인 22번으로 바로 실행이 되며,
X11 Forwarding 역시 문제 없이 별다른 설정없이 가능했다.

[출처 : http://sanghoon.wordpress.com/2007/12/05/]
Posted by 구차니