SSH connectivity error

SSH Service is not working in VM. please help

Hello @thapaswiprathipati
Try the sshd test mode. It may point you to a reason for failure:

$ sshd -t

Try this command journalctl -u ssh as well

Hello Ayman ,

I have resolved the error by making some configuration changes in “/etc/ssh/sshd_config” file.

Modified the parameter

ForwardX11 yes to X11Forwarding yes.

After required changes, I have restarted my sshd services.

Thank you @Ayman


Happy learning.