Score:0

Could not able to connect to SSH after upgrade the Linux

in flag

Error : enter image description here

SSH/SFTP : /bin/bash no such a file or directory

I have server hosted on digital ocean, I have upgrade the Linux to version 20.0, everything works fine, even my website is also running fine but I couldn't able to access via SSH.

It was working absolutely fine before upgrade.

Attached the screen to understand more.

np flag
Can you get a shell via Digital Ocean console? If you are getting the same error, then somehow your `bash` software are missing. You have to boot some sort of rescue and reinstall it.
Vishal Ghantala avatar
in flag
@NStorm yes, I can get a shell via Digital Ocean.
np flag
Does it works? Can you run `which bash && echo $SHELL` from it (and post it's output here)?
Vishal Ghantala avatar
in flag
I run the command and its shows me result /bin/bash for both.
np flag
Take a look at your sshd_config, can this https://serverfault.com/questions/254233/ssh-fails-bin-bash-no-such-file-or-directory be your case what you have chrooted environment under ssh?
Vishal Ghantala avatar
in flag
I tried this but when i run command chroot its again throw me the same error. really I hang up , I am not than much familiar with Linux.
np flag
Let us [continue this discussion in chat](https://chat.stackexchange.com/rooms/129360/discussion-between-nstorm-and-rws-piyush).
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.