Gentoo Archives: gentoo-user

From: Paul Tobias <tobias.pal@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] user config provisioning
Date: Thu, 21 May 2015 08:50:45
In Reply to: [gentoo-user] user config provisioning by "Stefan G. Weichinger"
1 On 20 May 2015 22:08, "Stefan G. Weichinger" <lists@×××××.at> wrote:
2 >
3 > alias abcd-server='ssh -p 51023' # demo only
5 Instead of aliases, you can put this into ~/. ssh/config:
6 Host abcd
7 Port 51023
8 Hostname
10 And then you can simply do this:
11 ssh abcd
13 As a bonus, the host abcd will work with scp and rsync too. You can
14 check man ssh_config for some other options to use, for example the
15 User is very useful too. Here are some more tricks:
18 There is a package net-misc/keychain which is useful to add your keys
19 to the agent, and handles gpg keys too.
21 Also note that most ssh servers allow only 3-5 authentication
22 attempts, so if you have more than 2 keys in your agent, then
23 connecting to a server with password authentication might fail.
25 If you need to keep security boundaries but don't want to give up the
26 convenience of ssh agent forwarding then you can use ssh-ident, as
27 described here:
28 (unfortunately no gentoo package for that one, but it's just a single
29 python file).
31 Have a nice day,
32 Paul


Subject Author
Re: [gentoo-user] user config provisioning "Stefan G. Weichinger" <lists@×××××.at>