commit
38164332e198f7cc8f339b42d555796918de04b3 try to
disallow ssh-client install for without proper options.
But ssh-client will fail installation with --sshkey for
publickey mode
Fix it by refusing to install only when both --ctty and --sshkey
are not added in options.
Signed-off-by: Dave Young <dyoung@redhat.com>
}
install() {
- [[ ! $cttyhack = yes ]] && {
- derror "ssh interactive mode needs option --ctty!"
+ [[ ! $cttyhack = yes && ! $sshkey ]] && {
+ derror "ssh-client needs option --ctty or --sshkey!"
return 1
}