ssh config host limits

Viewed 1149

I have some problem with ~/.ssh/config. I have 300 hosts on which i need to get as root and not as me. I wrote the script which is creating the config file for me, which gives me config file with four lines:

host *
    user me
host <here 300 hostnames seperated by space and in this same line all>
    user root

When I want to connect to any server through ssh I have got the message, that I have a 'bad configuration in line: 10' or '...line 6' :/

wc -l .ssh/config

gives me 4

1 Answers
Related