Skip to content

Bad ssh_config ami-4c6a0d5b #21

Open
@smford22

Description

@smford22

The ssh_config for ami-4c6a0d5b has the following entries...

[chef@ip-172-31-23-73 workstation]$ cat /etc/ssh/ssh_config
# Created by Chef for ip-172-31-14-166.ec2.internal

Host *
  MaxSessions 250
  MaxStartups 250

MaxSessions and MaxStartups are actually /etc/ssh/sshd_config settings though and this causes kitchen login to fail on our training nodes...

[chef@ip-172-31-23-73 workstation]$ kitchen login
$$$$$$ Running legacy login for 'Docker' Driver
/etc/ssh/ssh_config: line 4: Bad configuration option: MaxSessions
/etc/ssh/ssh_config: line 5: Bad configuration option: MaxStartups
/etc/ssh/ssh_config: terminating, 2 bad configuration options

If you remove that setting kitchen login succeeds...

chef@ip-172-31-23-73 workstation]$ sudo vi /etc/ssh/sshd_config
[chef@ip-172-31-23-73 workstation]$ cat /etc/ssh/ssh_config
# Created by Chef for ip-172-31-14-166.ec2.internal

[chef@ip-172-31-23-73 workstation]$ kitchen login
$$$$$$ Running legacy login for 'Docker' Driver
kitchen@localhost's password:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions