X-Git-Url: https://git.proxmox.com/?p=pve-client.git;a=blobdiff_plain;f=PVE%2FAPIClient%2FCommands%2Fremote.pm;h=781fb63818ca4104d1d4167161dbef12364c14ff;hp=e8c876a7259921cff5f83452537f828e66985063;hb=8842464b81a452996373e5d21205282eeef66888;hpb=a304c3d793fec74aba1554cc0b7961024018f411;ds=sidebyside diff --git a/PVE/APIClient/Commands/remote.pm b/PVE/APIClient/Commands/remote.pm index e8c876a..781fb63 100644 --- a/PVE/APIClient/Commands/remote.pm +++ b/PVE/APIClient/Commands/remote.pm @@ -61,9 +61,14 @@ __PACKAGE__->register_method ({ my $last_fp = 0; + my $password = $param->{password}; + if (!defined($password)) { + $password = PVE::PTY::read_password("Remote password: "); + } + my $setup = { username => $param->{username}, - password => $param->{password}, + password => $password, host => $param->{host}, port => $param->{port} // 8006, };