linux - How to eliminate the dialog box arisen when run "setsid scp"? -


due reason, have use "setsid" run of commands.

but, when running "setsid scp ~/aaa user1@10.170.3.17:/tmp/", dialog box requesting password arose. normally, prompt arises in command line.

does caused configuration in ssh? want eliminate box. how achieve it?

one of effects of setsid command process started via setsid(1) detached it's controlling terminal. without controlling terminal, scp cannot ask password on terminal started because not "see" any. however, "see" environment variable telling there x11 window session can show graphical utility ask password or passphrase needed unlock private ssh key used authenticate remote system.

even if unset environment variable "sees" , uses route x11-ssh-askpass dialogue screen (display), not produce desired effect you, since required key missing , scp operation fail.

one of solutions recommend here setting "passwordless" login (if applicable in given security circumstances), using ssh-keygen(1) produce "identity keys" not password-protected.

you might explore other possibilities, example providing passphrase in file or on command line option, whatever works better you. please have in environment section of ssh(1) manpage.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -