This content originally appeared on DEV Community and was authored by Janardhan Pulivarthi
And you cannot login to the machine because the connection get closed.
The trick is to press Ctrl+C
immediately after the login to prevent bash profile from loading.
refer:
https://unix.stackexchange.com/a/232269
This content originally appeared on DEV Community and was authored by Janardhan Pulivarthi

Janardhan Pulivarthi | Sciencx (2022-05-03T12:19:21+00:00) In case you mess up the bash files. Retrieved from https://www.scien.cx/2022/05/03/in-case-you-mess-up-the-bash-files/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.