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
Message-Id: CABHv7=r=go+_9ufKQVBu4Pkbj2=EGaT+YoUGbxg_0HHGjAH3_A@mail.gmail.com
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 174.183.26.11' # demo only
4
5 Instead of aliases, you can put this into ~/. ssh/config:
6 Host abcd
7 Port 51023
8 Hostname 174.183.26.11
9
10 And then you can simply do this:
11 ssh abcd
12
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:
16 https://blog.flameeyes.eu/2011/01/mostly-unknown-openssh-tricks
17
18 There is a package net-misc/keychain which is useful to add your keys
19 to the agent, and handles gpg keys too.
20
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.
24
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: http://rabexc.org/posts/pitfalls-of-ssh-agents
28 (unfortunately no gentoo package for that one, but it's just a single
29 python file).
30
31 Have a nice day,
32 Paul

Replies

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