Conversation
Notices
-
Embed this notice
:blobcathug: (jain@blob.cat)'s status on Monday, 12-Feb-2024 18:53:46 JST :blobcathug:
Why the fuck does the command work when im actually in the ssh session but not when i pass the command as a string to ssh -
Embed this notice
:blobcathug: (jain@blob.cat)'s status on Monday, 12-Feb-2024 18:58:02 JST :blobcathug:
@pmj i think so -
Embed this notice
𝗣𝗠𝗝 👽 (pmj@social.pmj.rocks)'s status on Monday, 12-Feb-2024 18:58:04 JST 𝗣𝗠𝗝 👽
escaped special chars?
-
Embed this notice
:blobcathug: (jain@blob.cat)'s status on Monday, 12-Feb-2024 19:00:42 JST :blobcathug:
@pmj its this command:
echo 'password' | sudo -Sv && sudo id
If i run it directly on the server it works fine but if i pass it as
ssh <ssh args> "<command>" then it does not work -
Embed this notice
:blobcathug: (jain@blob.cat)'s status on Monday, 12-Feb-2024 19:02:00 JST :blobcathug:
@pmj im pretty sure its a problem with pipeing the password into sudo... That somehow wont work -
Embed this notice
:blobcathug: (jain@blob.cat)'s status on Monday, 12-Feb-2024 19:08:44 JST :blobcathug:
@pmj
> -p prompt
The -p (prompt) option allows you to override the default password prompt and use a custom one. The following percent ('%') escapes are
i doubt it -
Embed this notice
𝗣𝗠𝗝 👽 (pmj@social.pmj.rocks)'s status on Monday, 12-Feb-2024 19:08:45 JST 𝗣𝗠𝗝 👽
yep, i was just about to write that
use the -p flag for that
-
Embed this notice