Multiple SSH connections (Was Re: [Ilugc] Re: Intruders cracked my Server)

  • From: kapil@xxxxxxxxxxx (Kapil Hari Paranjape)
  • Date: Sun Jun 22 15:09:58 2008

Hello,

On Sat, 21 Jun 2008, Raja Subramanian wrote:

it is easy to establish more than N connections per minute over
the LAN through regular usage through various shell scripts, maintenance
tasks, etc.

Multiple ssh connections are not really required for recent openssh 
clients. These create a local "connection socket" which allows
multiple ssh clients to operate through one TCP connection.

For example my config file for a specific client looks like:

Host    somename
User    myname
ControlPath     ~/.ssh/%r.%h.sock
ControlMaster   auto
StrictHostKeyChecking yes
IdentityFile ~/.ssh/myid_dsa
PasswordAuthentication no
UserKnownHostsFile ~/.ssh/known_hosts
ForwardX11 no
ForwardAgent no

As a consequence, if I log in to "somename" once, then the
same TCP connection can be re-used by other clients---without
re-authentication. This is most useful if I later need to "scp" a file
to the "somename" while remaining connected.

Regards,

Kapil.
--

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : 
http://www.ae.iitm.ac.in/pipermail/ilugc/attachments/20080622/4297e521/attachment.bin

Other related posts: