Operating System - HP-UX
1821537 Members
2640 Online
109633 Solutions
New Discussion юеВ

SSH error - Bad configuration option: PermitLocalCommand

 
SOLVED
Go to solution
dictum9
Super Advisor

SSH error - Bad configuration option: PermitLocalCommand

The system is 11.00

When I scp to any client, I get this.

I cannot find PermitLocalCommand in any sshd_config file.

Why is this happening, what can I do?

/usr/local/bin #:./scp -v -v -v /tmp/a baja1:/var/tmp
Executing: program /usr/local/bin/ssh host baja1, user (unspecified), command scp -v -t /var/tmp
command-line: line 0: Bad configuration option: PermitLocalCommand
lost connection
#



#:ssh -v
OpenSSH_3.0p1, SSH protocols 1.5/2.0, OpenSSL 0x0090600f

hp-ux 11.00
4 REPLIES 4
OldSchool
Honored Contributor

Re: SSH error - Bad configuration option: PermitLocalCommand

check the ssh config files instead.
dictum9
Super Advisor

Re: SSH error - Bad configuration option: PermitLocalCommand

Nothing in ssh_config either.
VK2COT
Honored Contributor
Solution

Re: SSH error - Bad configuration option: PermitLocalCommand

Hello,

Scp and sftp add it to the command line they run. For example:

addargs(&args, "-oPermitLocalCommand no");

Your sftp and scp executables are using the
wrong ssh executable.

Sftp and ssh set a number of options when
invoking ssh. PermitLocalCommand
is one of them.

The PATH might be setup however you like,
but the scp has the preferred path to the
ssh built into it.

If you do:

# strings scp | grep \/

... you will see the default
path to the binary for ssh.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
dictum9
Super Advisor

Re: SSH error - Bad configuration option: PermitLocalCommand

I will look into it shortly, thanks.