Tag: ssh

TechTip: Email Alert on SSH login

To secure your machine, there are hundred different things you can do, but the most important thing is to know what's happening on your Machine. In that getting the alerts as soon as someone login is one of very important and must thing to do.

So, to do the same thing, you can go with two approaches:

Read the complete article »

Password-Less SSH Login

SSH is the most trusted protocol used in today's world for remote logins and secure file transfers from one machine to another. There are three different ways of authetication when trying to login with SSH protocol:

  1. Password Based Authentication
  2. Key Based Authentication
  3. Host Based Authentication

Read the complete article »

Though this warning looks pretty much scary but the reason for this is very much simple and the solution as well.

Q. When did you get this error ?

A. The possible reasons for getting this error are:

  • You have re-installed you system and trying to ssh to the newly installed system.
  • You have assigned the IP address of one system to another system and trying to ssh.
  • You system is dual boot with different ssh keys in both flavors of linux.
  • You are using an IP for load balancing and trying to ssh to the same IP.
  • You generated new ssh keys for your system. (Read this article for the re-generation of the host keys: Generate SSH host keys)
  • Someone trying to do some nasty things, or you can say man-in-the-middle attack.

There could be lots of solution for this problem, which are explained below:

Read the complete article »

How To : Generate SSH Host keys

SSH is a service which most of system administrators use for remote administration of servers. When you install a fresh system, then at the start of the ssh service, it generates the host keys for your system which later on used for authentication. But if due to some reason you need to generate the host keys, then the process is …

Read the complete article »

Keeping your SSH sessions alive

I recently noticed that ssh connections from my mac laptop to my server would time out and disconnect if I left the connection idle for a long period of time. This could turn out to be really annoying sometimes.

Add the following line to your ssh config file $HOME/.ssh/config:

ServerAliveInterval 180
ServerAliveCountMax 5

That will fix the time out problem …

Read the complete article »