From: Paul Tobias <tobias.pal@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] user config provisioning
Date: Thu, 21 May 2015 09:49:55 +0100 [thread overview]
Message-ID: <CABHv7=r=go+_9ufKQVBu4Pkbj2=EGaT+YoUGbxg_0HHGjAH3_A@mail.gmail.com> (raw)
In-Reply-To: <555CF761.90307@xunil.at>
On 20 May 2015 22:08, "Stefan G. Weichinger" <lists@xunil.at> wrote:
>
> alias abcd-server='ssh -p 51023 174.183.26.11' # demo only
Instead of aliases, you can put this into ~/. ssh/config:
Host abcd
Port 51023
Hostname 174.183.26.11
And then you can simply do this:
ssh abcd
As a bonus, the host abcd will work with scp and rsync too. You can
check man ssh_config for some other options to use, for example the
User is very useful too. Here are some more tricks:
https://blog.flameeyes.eu/2011/01/mostly-unknown-openssh-tricks
There is a package net-misc/keychain which is useful to add your keys
to the agent, and handles gpg keys too.
Also note that most ssh servers allow only 3-5 authentication
attempts, so if you have more than 2 keys in your agent, then
connecting to a server with password authentication might fail.
If you need to keep security boundaries but don't want to give up the
convenience of ssh agent forwarding then you can use ssh-ident, as
described here: http://rabexc.org/posts/pitfalls-of-ssh-agents
(unfortunately no gentoo package for that one, but it's just a single
python file).
Have a nice day,
Paul
next prev parent reply other threads:[~2015-05-21 8:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-20 21:06 [gentoo-user] user config provisioning Stefan G. Weichinger
2015-05-20 22:02 ` Alan McKinnon
2015-05-21 11:28 ` Stefan G. Weichinger
2015-05-21 13:10 ` Alan McKinnon
2015-05-21 14:00 ` Stefan G. Weichinger
2015-05-21 8:49 ` Paul Tobias [this message]
2015-05-21 13:13 ` Stefan G. Weichinger
2015-05-21 15:04 ` Stefan G. Weichinger
2015-05-21 15:41 ` Stefan G. Weichinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABHv7=r=go+_9ufKQVBu4Pkbj2=EGaT+YoUGbxg_0HHGjAH3_A@mail.gmail.com' \
--to=tobias.pal@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox