I am logging to a remote server via ssh as user
www-data on the server has his default shell set to
/bin/sh, and when I log in, I get dash as my shell. I can then type
bash and get
I would like to log in into bash directly, when I ssh in. But I don't want to change the default shell on the server. I want my change only to affect ssh session.
I have tried putting
command="/bin/bash" infront of my public key in
.ssh/authorized_keys, but this has another side effect: while bash works as default shell when logging in,
scp stopped working. I can no longer scp files to or from the remore server.
How can I set
bash as default shell for ssh session, without breaking other applications ?