Monday, October 3, 2011

Vi and jump to certain line number

Problem message from ssh:

Please contact your system administrator.
Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.
Offending key in /home/user/.ssh/known_hosts:41
RSA host key for has changed and you have requested strict checking.
Host key verification failed.
We need to quickly remove 41 line.

Example to jump for certain line (41th):
 vi +41 /home/rivanov/.ssh/known_hosts
Press key d twice to remove current line.

Just for further information:
Vim keys -

No comments:

Post a Comment