Estou tentando configurar meu ssh_config (CLIENT) para usar keyfiles diferentes dependendo do usuário para o mesmo host, mas não consigo fazer funcionar. O que está errado? Diz mau arumento
Host myServer
Hostname myServer.net
Match #bad argument at this line
Host myServer
User jhon
IdentityFile ~/.ssh/jhon
Match
User foo
IdentityFile ~/.ssh/foo
----------------------->[RESOLVIDO]<---------------------- -
Host myServer
Hostname myServer.net
Match user jhon host "myserver.net"
IdentityFile ~/.ssh/jhon
Match user foo host "myserver.net"
IdentityFile ~/.ssh/foo
Host another
User anyOtherOneUser
Hostname another.net
# any other configuration
Match user jhon host "another.net"
IdentityFile ~/.ssh/jhon-another
Match user foo "another.net"
IdentityFile ~/.ssh/foo-another