You are not logged in.

#1 2021-10-30 05:46:36

vanillamilkk
Member
Registered: 2021-03-11
Posts: 14

[SOLVED] how to change default shell only when on ssh

My ssh client on my phone behave weirdly at zsh shell but working fine with bash shell.
Typing 'bash' after login works fine but i want to do that automatically.

Last edited by vanillamilkk (2021-10-30 15:36:48)

Offline

#2 2021-10-30 06:43:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,223

Re: [SOLVED] how to change default shell only when on ssh

By default ~/.ssh/rc is executed on login and you can also use https://man.archlinux.org/man/sshd_conf … rceCommand to globally force the execution of a command.

behave weirdly at zsh shell

How exactly? If this is down to your promt, you could just alter that in your zshrc and imitating it in your bashrc would likely cause you the same trouble.

Offline

Board footer

Powered by FluxBB