public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Stefan G. Weichinger" <lists@xunil.at>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] user config provisioning
Date: Thu, 21 May 2015 15:13:52 +0200	[thread overview]
Message-ID: <555DDA10.5050501@xunil.at> (raw)
In-Reply-To: <CABHv7=r=go+_9ufKQVBu4Pkbj2=EGaT+YoUGbxg_0HHGjAH3_A@mail.gmail.com>

On 21.05.2015 10:49, Paul Tobias wrote:
> 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. 

Yes, I knew of that.

I have to think what is better ... maybe really your suggested way of
doing it.

I just have to "convert" my aliases once ...

> 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.

I have that on my systems, yes.

> 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.

ok, good to have that in mind, yes

> 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).

thanks! nice hints ... I will take a closer look later when I fixed that
logjam-stuff on web and mailservers ....

nice day to you as well, Stefan



  reply	other threads:[~2015-05-21 13:14 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
2015-05-21 13:13   ` Stefan G. Weichinger [this message]
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=555DDA10.5050501@xunil.at \
    --to=lists@xunil.at \
    --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