Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

SSH with Custom login shell

Altera_Forum
Honored Contributor II
1,910 Views

Dear experts, 

 

I want to open the SSH session with custom login shell.In other words ,when the user logs in the SSH ,he should see the custom shell not the default shell,sh.I tried setting the shell for user account and found that if I set the user to custom shell ,SSH does not permit the user to login and I get access denied message.Can you help with this?I am using the dropbear SSH. 

 

regards, 

rocker
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
959 Views

would anybody please answer this? 

 

regards, 

rocker
0 Kudos
Altera_Forum
Honored Contributor II
959 Views

Edit /etc/passwd and change default shell of user. 

 

i.e. 

root:CriptPasswd:0:0:root:/:/bin/sh 

 

change to: 

 

root:CriptPasswd:0:0:root:/:/bin/SHELL 

 

The shell can be a shellscript!
0 Kudos
Reply