Re: Update password using ssh over remote server permission denied

From: Darren Tucker (dtucker_at_gate.dodgy.net.au)
Date: 07/25/05


Date: 25 Jul 2005 15:37:25 GMT

On 2005-07-25, akim_ziadi@hotmail.com <akim_ziadi@hotmail.com> wrote:
> I'm trying to change a user password on another servers via ssh, and i
> always get a permission denied, someone know why ???
>
> SERVERA#ssh SERVERB "passwd USER1"
> Permission denied
> SERVERA#

The "passwd" program is trying to read its input from its controlling
terminal, and when you run it that way there's no controlling terminal,
only stdin/stdout/stderr.

If you're using OpenSSH, try adding a "-t" to request a pty (two -t's to
force it), ie:
ssh -t SERVERB "passwd USER1"

If you're using some other software then check for an equivalent option.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


Relevant Pages

  • Analysis of SSH crc32 compensation attack detector exploit
    ... Analysis of SSH crc32 compensation attack detector exploit ... detector vulnerability to remotely compromise a Red Hat Linux ... Active Internet connections (servers and established) ...
    (Incidents)
  • Re: Agent Forwarding Question for the list
    ... I provided a suggestion (invoking ssh with -vvv) as to how to further troubleshoot the problem. ... I was determined to ask the experts in case it was a common mistake or something that simply is not possible under openssh. ... Say in the ideal setup for development servers I'd have a cronuser, scriptuser, monitoruser, cvsuser, and root all configured with my public key and that I could jump in and out of each not only from my own Linux Desktop, but through each user to each user on other servers in the development chain. ... After reading all the documentation and FAQs I could find, I had assumed ssh-agent on the desktop and agent forwarding on the servers would be sufficient, but something is blocking the forwarding, or I'm way off and this isn't how it's meant to work. ...
    (SSH)
  • Weird networking problem
    ... We're experiencing som extremely weird networking problems at our ... I was unable to SSH into the Sun servers at our ... been changed on the switch, the firewall, servers or office PC's) ...
    (comp.sys.sun.admin)
  • Re: Anti-virus Programs
    ... As for SMB/CIFS filesystems shared with Windows systems I use Clamav to ... SSH vulnerability. ... users who have remote shell access. ... But poorly setup mail servers are possibly the worst because your ...
    (Fedora)
  • Re: it takes a long long long time to time-out a login attempt
    ... > I'm trying to ssh into my FreeBSD box from my ... Sounds like classic DNS timeout problems. ... That forces the resolver on the target machine to ... If your target machine is unable to access the Internet root servers ...
    (freebsd-questions)