My config file /home/vidur/.ssh/config is as:
Host ec2
HostName 54.69.86.125
User ubuntu
Identity /home/vidur/Documents/SSH_PEM_FILES/tukacloud.pem
Host *
AddKeysToAgent yes
IgnoreUnknown UseKeychain
UseKeychain yes
on Running:
ssh ec2
Gives following error:
home/vidur/.ssh/config: line 4: Bad configuration option: identity
/home/vidur/.ssh/config: terminating, 1 bad configuration options
can you please guide for the correct configuration I am using ubnutu 20 both in local ubuntu and remote aws machine.
However simple ssh with key present in the command will work.
ssh -i tukacloud.pem ubuntu@ec2-54-69-86-125.us-west-2.compute.amazonaws.com