Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to create a config file and tell ssh to deal with it. I don't want to use ~/.ssh/config because these are config files per project and not per user. So I'm trying to roll with:

ssh -F project_servers.ssh

And terminal returns ssh usage. This is the contents of the file I want SSH to play with:

Host preview
User xxxx
Port 52
HostName xxxx.com

Anybody knows what I'm doing wrong here?

Thanks

share|improve this question

1 Answer 1

up vote 5 down vote accepted

You still need to request the named Host section on the command line:

ssh -F project_servers.ssh preview
share|improve this answer
1  
i hope you'll never extinct! Thank you sir, that was the hack indeed! –  fabjoa May 7 '11 at 8:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.