I am trying to check the BIOS version of a server over SSH, a command that requires root privileges:
ssh remote-server su -c dmidecode
but this of course fails with the error:
standard in must be a tty
How do I make this work? I cannot use sudo, and when I try to log in as root@remote-server, it won't accept the password I use for the 'su' command. I am using RedHat Enterprise Linux 4.