sshj icon indicating copy to clipboard operation
sshj copied to clipboard

sshj session cannot execute commands with ssh configurd ForceCommand

Open carlwang87 opened this issue 2 years ago • 1 comments
trafficstars

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.

carlwang87 avatar May 27 '23 13:05 carlwang87

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.

hierynomus avatar May 29 '23 21:05 hierynomus