apache / apache/mina-sshd

How to Enable a Level-2 Shell to Display Shell Prompt?

Open
#897 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.1k
Forks
400
Avg merge
5d 1h
Merged PRs (30d)
1

Description

After you log in to the SSH service using the user password and run the bash command again, no command output is displayed. However, the Linux system displays the command output.
How to solve the above problems to make the same response as Linux,

For example, after logging in to the system using the password, run the bash command and then run the ls command.
**Linux:**
```
[root@hostname -]# bash
[root@hostname -]# ls
testFolder1
testFolder2
[root@hostname -]#
```

**mina-sshd: No shell prompt is displayed.**
```
[root@hostname -]# bash
testFolder1
testFolder2
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the SSH session described in the issue: log in with a password, run bash, then run ls, and compare the prompt and output with Linux. Trace the shell or channel handling involved in this sequence; done means the prompt is displayed and command output matches the expected interactive behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.