Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sshj session cannot execute commands with ssh configurd ForceCommand #863

Open
carlwang87 opened this issue May 27, 2023 · 1 comment
Open

Comments

@carlwang87
Copy link

In copshell, configuraion as below:

Match User carl
	ForceCommand   /bin/bash --login -i
	PasswordAuthentication   yes
	PubkeyAuthentication   no
	AllowTcpForwarding   yes
	MaxSessions 10

When I remove ForceCommand /bin/bash --login -i, sshj session can execute commands. So, can not sshj support this configuration? I used MobaXterm tool to connect and execute commands successfully.

@hierynomus
Copy link
Owner

I have no idea what that is and what that config does. Please check with COPShell. Also highly unsure as to what you're trying to do, as you're not giving any clues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants