My current .ssh/config file has below config.
Host * FingerprintHash sha256 StrictHostKeyChecking yes PasswordAuthentication no GSSApiAuthentication no KbdInteractiveAuthentication no CheckHostIP yes ControlMaster auto ControlPath ~/.ssh/master-%r@%h:%p Port 28282
And I want to add another rule applies only for one host ip(220.127.116.11).
So, I added below rules in .ssh/config file.
Host 18.104.22.168 Hostname 22.214.171.124 Port 22
But the first wider rule keeps affecting to 126.96.36.199 rule.
I want to ssh to 188.8.131.52 only with default settings like login with password(not affected by * rules).
When I run
ssh -v firstname.lastname@example.org, it shows below message(looks * rule is applied). And keep trying through port 28282.
debug1: /home/ryan/.ssh/config line 23: Applying options for * debug1: /home/ryan/.ssh/config line 74: Applying options for 184.108.40.206 .. debug1: Connecting to 220.127.116.11 [18.104.22.168] port 28282. debug1: connect to address 22.214.171.124 port 28282: Connection refused
What do I need to change to login with password and port 22 to 126.96.36.199?
Thanks in advance.