Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.ssh/config host alias not working with distcc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chaoscommander
Tux's lil' helper
Tux's lil' helper


Joined: 15 Oct 2012
Posts: 88

PostPosted: Sun Mar 13, 2016 8:29 pm    Post subject: .ssh/config host alias not working with distcc Reply with quote

Does this belong in Networking (b/c ssh) or in Portage (b/c distcc)? Hmm.

I'm trying to setup distcc over ssh. I have generated a key pair for passwordless auth and defined an alias in .ssh/config, like so:

Code:

Host abc
  HostName abcde.org
  User myuser


... and I added the entry @abc/6 to my distcc hosts file. What works: using "ssh abc" to connect to abcde.org as myuser. What doesn't: distcc over ssh. I get
Code:
ssh: Could not resolve hostname abc: Name or service not known
distcc[15243] (dcc_writex) ERROR: failed to write: Broken pipe


No idea why. Any pointers would be appreciated. I have tried to add myuser@abcde.org to distcc hosts, but that causes a password prompt to come up every time distcc tries to distribute things to abc.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Mar 13, 2016 9:40 pm    Post subject: Re: .ssh/config host alias not working with distcc Reply with quote

chaoscommander ...

this sounds as though you're expecting portage to look in /home/$USER for the identity_file and config ... you will need to provide these (paths) as ssh parameters (see 'man ssh'), /etc/portage/.ssh would probably be a good choice.

HTH & best ... khay
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7193

PostPosted: Mon Mar 14, 2016 4:05 am    Post subject: Reply with quote

the @ is just saying "use ssh", in no way it mean that's a command for ssh.
so "@abc" is @=use ssh, with "abc" host, and if your /etc/hosts doesn't point to any abc entry, distcc will tell you it have no clue about who abc is.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum