Issue
macbookair@Furqans-MacBook-2021 ~ % ssh -T [email protected]
/etc/ssh/sshd_config.d/100-macos.conf: line 2: Bad configuration option: usepam
/etc/ssh/sshd_config.d/100-macos.conf: line 3: Bad configuration option: acceptenv
/etc/ssh/sshd_config.d/100-macos.conf: line 4: Bad configuration option: subsystem
/etc/ssh/sshd_config.d/100-macos.conf: terminating, 3 bad configuration options
macbookair@Furqans-MacBook-2021 ~ % sudo nano /etc/ssh/sshd_config
When ever i try "ssh -T [email protected] " OR "ssh root@" OR push my branch it shows me this error
Solution
So i got the solution,I completely messed up the ssh_config and sshd_config files... Man pages for sshd_config (the server-side config, which includes the AcceptEnv, AuthorizedKeysFile, Subsystem, and UsePAM keywords) vs ssh_config (the client-side config, which doesn't have any of those -- although it does have some related ones, like SendEnv, SetEnv, and SessionType ).
I took the latest files of ssh_config and sshd_config from github and also updated the config file by entering...
sudo nano ~/.ssh/config
and updated my host settings
Answered By - Furqan Answer Checked By - David Marino (WPSolving Volunteer)