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

New host breaks ssh #215

Closed
pikeas opened this issue Jan 23, 2017 · 1 comment
Closed

New host breaks ssh #215

pikeas opened this issue Jan 23, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@pikeas
Copy link

pikeas commented Jan 23, 2017

I'm running a one-liner to update a file across a group of servers:

$ for i in {1..10}; do scp file server$i.domain.com:/etc; done
file                                                                                                          100% 2168    11.1KB/s   00:00
file                                                                                                          100% 2168    11.1KB/s   00:00
...
The authenticity of host 'server7.domain.com (<no hostip for proxy command>)' can't be established.
ECDSA key fingerprint is SHA256:/....
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'server7.domain.com' (ECDSA) to the list of known hosts.
file                                                                                                          100% 2168    11.1KB/s   00:00
WARN[0000] '~/.ssh/config' has been rewritten.  SSH needs to be restarted.  See https://github.com/moul/advanced-ssh-config/issues/122 for more information.
/Users/apikeas/.ssh/config: line 62: Bad configuration option: ver8.domain.com,
/Users/apikeas/.ssh/config: terminating, 1 bad configuration options

This is reproducible - the first unknown host connects successfully, the next unknown host causes the above failure. The error on line 62 is always a truncated host name.

@moul moul added the Bug label Jan 25, 2017
@moul moul added this to the v2.6.0 milestone Jan 27, 2017
@moul moul self-assigned this Jan 27, 2017
@moul moul added the ready label Jan 29, 2017
@moul moul modified the milestones: v2.6.0, v2.7.0 Feb 3, 2017
@moul moul closed this as completed in 165787a Apr 1, 2017
@moul moul removed the ready label Apr 1, 2017
@moul
Copy link
Owner

moul commented Apr 1, 2017

Fixed :)

Thanks for your feedback!

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

No branches or pull requests

2 participants