Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--confhost doesn't open any IdentityFile(s) #121

Open
HaleTom opened this issue Aug 29, 2020 · 1 comment
Open

--confhost doesn't open any IdentityFile(s) #121

HaleTom opened this issue Aug 29, 2020 · 1 comment

Comments

@HaleTom
Copy link

HaleTom commented Aug 29, 2020

It seems that --confhost isn't opening any keys:

% grep IdentityFile ~/.ssh/config
  IdentityFile ~/.ssh/id_android
  IdentityFile ~/.ssh/id_boxy_rsa
  # IdentityFile ~/.ssh/id_4096rsa_20kdf
  # IdentityFile ~/.ssh/id_4096_jvlk.me
% keychain -k all --quiet ; eval $(keychain --eval --agents ssh --confhost); ssh-add -l

 * keychain 2.8.5 ~ http://www.funtoo.org
 * Starting ssh-agent...

The agent has no identities.
% 

strace shows that no attempt is made to open the IdentityFiles:

% strace -fs 80 keychain --eval --agents ssh --confhost |& grep -i /.ssh/        
stat("/home/ravi/.ssh/config", {st_mode=S_IFREG|0755, st_size=3354, ...}) = 0
[pid 309511] read(6, "vi\0/home/ravi/.ssh/config\0", 131072) = 26
[pid 309511] read(6, "/usr/bin/grep\0--color=auto\0-i\0/.ssh/\0", 131072) = 37
[pid 309509] <... read resumed>"  S+     0:00 /usr/bin/grep --color=auto -i /.ssh/\n 309497 pts/15   S+     0:00 "..., 128) = 128
[pid 309517] openat(AT_FDCWD, "/home/ravi/.ssh/config", O_RDONLY) = 3
[pid 309517] read(0, "  User root\n  Port 2222\n  IdentityFile ~/.ssh/id_android\n  KexAlgorithms diffie-"..., 128) = 128
[pid 309517] read(0, "  Port 2222\n  IdentityFile ~/.ssh/id_android\n  KexAlgorithms diffie-hellman-grou"..., 128) = 128
[pid 309517] read(0, "  IdentityFile ~/.ssh/id_android\n  KexAlgorithms diffie-hellman-group1-sha1,diff"..., 128) = 128
[pid 309517] read(0, "# Infomred by \"stribka Secure Secure Shell\"\n\nHost *\n  IdentityFile ~/.ssh/id_box"..., 128) = 128
[pid 309517] read(0, "\nHost *\n  IdentityFile ~/.ssh/id_boxy_rsa\n\n  AddKeysToAgent yes\n  IgnoreUnknown "..., 128) = 128
[pid 309517] read(0, "Host *\n  IdentityFile ~/.ssh/id_boxy_rsa\n\n  AddKeysToAgent yes\n  IgnoreUnknown U"..., 128) = 128
[pid 309517] read(0, "  IdentityFile ~/.ssh/id_boxy_rsa\n\n  AddKeysToAgent yes\n  IgnoreUnknown UseKeych"..., 128) = 128
[pid 309517] read(0, "  ControlMaster auto\n  ControlPersist yes\n  ControlPath ~/.ssh/sockets/%r@%h:%p\n"..., 128) = 128
[pid 309517] read(0, "  ControlPersist yes\n  ControlPath ~/.ssh/sockets/%r@%h:%p\n\n  ChallengeResponseA"..., 128) = 128
[pid 309517] read(0, "  ControlPath ~/.ssh/sockets/%r@%h:%p\n\n  ChallengeResponseAuthentication no\n\n  #"..., 128) = 128

Relevant ~/.ssh/config:

% grep -B3 IdentityFile ~/.ssh/config
Host ravidroid jnanidroid jnanitab ravidroid-local
  User root
  Port 2222
  IdentityFile ~/.ssh/id_android
--
# Infomred by "stribka Secure Secure Shell"

Host *
  IdentityFile ~/.ssh/id_boxy_rsa
@mrl5
Copy link

mrl5 commented Jul 16, 2022

hello @HaleTom - if you'd like to report a bug kindly use https://bugs.funtoo.org/

you can also reach us on Discord - for more info check https://www.funtoo.org/Welcome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants