My hosting provider (TsoHost) provides ssh access for each domain hosted. The ssh login is of the following format:-
<site>@shell.gridhost.co.uk
The <site> is the first 8 characters of the domain name.
What I would like to do in my ssh_config file is something like:-
Host site1 site2 site3 site4 HostName shell.gridhost.co.uk User %h
However this doesn't work of course becase the %h doesn't work in the User field.
Can anyone see any easy way of doing this except to simply repeat the whole block for each domain, as in:-
Host site1 HostName shell.gridhost.co.uk User site1