通过单个 shell 命令传递用户名和密码

通过单个 shell 命令传递用户名和密码

我正在运行的命令未能正确输入密码

sudo ssh username@servername "echo test  test| dsmadmc"

我收到此错误:

IBM Spectrum Protect  
Command Line Administrative Interface - Version, Release, Level 7.0
(c) Copyright by IBM Corporation and other(s) 1990. All Rights Reserved.

Enter your user id:  
ANS1051I Invalid user id or password
ANS1051I Invalid user id or password
ANS8023E Unable to establish a session with a server.
ANS1051I Invalid user id or password
ANS8002I Highest return code was 137.

我正在尝试使用一个命令,将用户名和密码传递给命令的执行。

有谁能够帮助我?

相关内容