Operating System - HP-UX
1753637 Members
5791 Online
108798 Solutions
New Discussion юеВ

Re: sftp not working whiile ssh working fine

 
mukesh_a
Advisor

sftp not working whiile ssh working fine

whenever i am trying to sftp from my server to another sserver following error occurying
$ sftp uapkb072.gep.ge.com
Connecting to uapkb072.gep.ge.com...
warning: Unrecognized configuration parameter 'PermitLocalCommand'.
ssh: FATAL: Illegal -o parameter "PermitLocalCommand no"
Connection closed
$
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: sftp not working whiile ssh working fine

Shalom,

Changes have been made to the sshd_config file on the server to specifically block sftp.

I suggest comparing the sshd_config file on a good system and correcting what would appear to be a mistake.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
VK2COT
Honored Contributor

Re: sftp not working whiile ssh working fine

Hello,

Our colleague SEP made a slight typing error.
I am sure it was accidental on his part.

PermitLocalCommand is part of client side
SSH setup (file ssh_config not sshd_config).

It allows local command execution via the
LocalCommand option or using the !command escape sequence in ssh.

The argument must be ├в yes├в or ├в no├в .
The default is ├в no├в .

Your config file is possibly corrupt or contains invalid statements.

Cheers,

VK2COT
VK2COT - Dusan Baljevic