sshj
sshj copied to clipboard
sshj session cannot execute commands with ssh configurd ForceCommand
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.
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.