ssh – remove offending key.

2016-04-04 1 min read Linux

Whenever a system/server is re-installed or the host key changed for any reason, you would have seen the “host key verification failed”. And as usual you would have to go to known_hosts file and delete the offending key. I will show you 2 simple ways to do this here.

The output that you get in such scenario is:

Offending ECDSA key in ~/.ssh/known_hosts:4

First, you can use sed to directly delete the offending key with a command like this :

Continue reading

Pimp your ls

2010-05-27 1 min read Bash

Here are some of the things that you can do with your ls command.

First off you can use alias’s to help you type the most typical ls commands. I will give you some examples:

alias ls =”ls –color –classify”
alias ls.=”ls -d .*”

Very commonly used :

  <td>
    <div class="text codecolorer">
      alias ll="ls -lhvrt"<br /> lsd="ls -lUd */" # List directories only
    </div>
  </td>
</tr>
1
2

And after all this you can download the l script from pixelbeat. Quite interesting:

Continue reading