Cookie Consent by Free Privacy Policy Generator ๐Ÿ“Œ How can a bash script ssh command fail by just changing the script name?

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š How can a bash script ssh command fail by just changing the script name?


๐Ÿ’ก Newskategorie: Linux Tipps
๐Ÿ”— Quelle: reddit.com

I have a deploy script that does many things. One of the things it does is running some scripts in the server.

So I have this line:

sshpass -p $PASSWORD ssh $SERVIDOR_USUARIO@$SERVIDOR_IP sudo $SERVIDOR_PASTA/../$SCRIPT_RM

and a bit above I have this line

SCRIPT_RM=utilities-rm

which loads the SCRIPT_RM var with the script name. Other lines fill the other vars.

This runs perfectly well. Now if I just rename the script for say utilities-rm2 (both in the script and server obviously) it fails with this error:

sudo: no tty present and no askpass program specified

which is the same error as if it didnยดt find the file.

If you're thinking it can't be pointing to that file, I double checked it by maintaining the name in the local script and renaming file in server. It failed. When I renamed it again it worked. :O Also there's no other file with that name in the server

Don't believe me ? here a video of the bug: https://www.youtube.com/watch?v=OYXbI_tLJH4

What in God's name is happening here ?

submitted by /u/nelson777
[link] [comments] ...



๐Ÿ“Œ How can a bash script ssh command fail by just changing the script name?


๐Ÿ“ˆ 81.37 Punkte

๐Ÿ“Œ ssh-context - Bash wrapper around ssh which provides you ability to use contexts (as in kubectl) for SSH.


๐Ÿ“ˆ 39.74 Punkte

๐Ÿ“Œ News in brief: hacker fail; voting fail; Twitter fail


๐Ÿ“ˆ 37.83 Punkte

๐Ÿ“Œ Bash Script Include Another Bash Script


๐Ÿ“ˆ 33.48 Punkte

๐Ÿ“Œ Bash add pause prompt in a shell script ( bash pause command )


๐Ÿ“ˆ 33.11 Punkte

๐Ÿ“Œ Can I read command history if a command is ran through bash script?


๐Ÿ“ˆ 32.46 Punkte

๐Ÿ“Œ niieani/bash-oo-framework: Bash Infinity is a modern boilerplate / framework / standard library for bash


๐Ÿ“ˆ 32.34 Punkte

๐Ÿ“Œ Bash Scripting - BASH Scripts For Heavy Commandline Users [Bash Snippets]


๐Ÿ“ˆ 32.34 Punkte

๐Ÿ“Œ Bash Scripting - BASH Scripts For Heavy Commandline Users [Bash Snippets]


๐Ÿ“ˆ 32.34 Punkte

๐Ÿ“Œ Back to bash: Inception, running bash inside bash


๐Ÿ“ˆ 32.34 Punkte

๐Ÿ“Œ Linux fail (serious systemd fail) A nasty DHCPv6 packet can pwn a vulnerable Linux box


๐Ÿ“ˆ 29.75 Punkte

๐Ÿ“Œ What is a Bash Script? [13 of 20] | Bash for Beginners


๐Ÿ“ˆ 27.52 Punkte

๐Ÿ“Œ While running a bash script using a hard symbolic link, how can it get the absolute path of its executing script?


๐Ÿ“ˆ 27.24 Punkte

๐Ÿ“Œ Sensible Bash : Small & opinionated selection of basic Bash configurations for a better command-line user experience


๐Ÿ“ˆ 27.15 Punkte

๐Ÿ“Œ Malicious Apps Get Back on the Play Store Just by Changing Their Name


๐Ÿ“ˆ 26.28 Punkte

๐Ÿ“Œ Fail Safe, Fail Smart, Succeed!


๐Ÿ“ˆ 25.22 Punkte

๐Ÿ“Œ Buzzword-Generator IT-Branche: Fail fast, fail often!


๐Ÿ“ˆ 25.22 Punkte

๐Ÿ“Œ buffed-Kolumne: Fail auf Fail - was ist nur aus Blizzard geworden?


๐Ÿ“ˆ 25.22 Punkte

๐Ÿ“Œ Buzzword-Generator IT-Branche: Fail fast, fail often!


๐Ÿ“ˆ 25.22 Punkte

๐Ÿ“Œ Fail to plan, plan to fail: How should businesses address the โ€œnew normal"


๐Ÿ“ˆ 25.22 Punkte

๐Ÿ“Œ Buzzword-Generator IT-Branche: Fail fast, fail often!


๐Ÿ“ˆ 25.22 Punkte

๐Ÿ“Œ Fail to prepare, prepare to fail โ€“ a guide to preparing for the next big retail launch


๐Ÿ“ˆ 25.22 Punkte

๐Ÿ“Œ Failure is Required: Understanding Fail-Safe and Fail-Fast Strategies


๐Ÿ“ˆ 25.22 Punkte

๐Ÿ“Œ LinkedIn: Can access the job name, creator name and can report any draft/under review/rejected job


๐Ÿ“ˆ 24.98 Punkte

๐Ÿ“Œ How Can I Add an Already Generated SSH Key to Git Bash?


๐Ÿ“ˆ 24.97 Punkte

๐Ÿ“Œ btrfs-undelete: A simple script for recovering just-deleted files, directories, and wildcards. This script saved my ass just now. (GPLv2)


๐Ÿ“ˆ 24.76 Punkte

๐Ÿ“Œ Bash script function 'ren' which rename in batch any file name matching the pattern of nearly/emulated PCRE


๐Ÿ“ˆ 24.7 Punkte

๐Ÿ“Œ Quest Policy Authority 8.1.2.200 submitUser.jsp first name/last name/logon name cross site scripting


๐Ÿ“ˆ 23.88 Punkte

๐Ÿ“Œ CVE-2022-3493 | SourceCodester Human Resource Management System 1.0 Add Employee First Name/Middle Name/Last Name cross site scripting


๐Ÿ“ˆ 23.88 Punkte

๐Ÿ“Œ CVE-2022-3518 | SourceCodester Sanitization Management System 1.0 User Creation First Name/Middle Name/Last Name cross site scripting


๐Ÿ“ˆ 23.88 Punkte

๐Ÿ“Œ CVE-2022-3716 | SourceCodester Online Medicine Ordering System 1.0 First Name/Middle Name/Last Name cross site scripting


๐Ÿ“ˆ 23.88 Punkte

๐Ÿ“Œ CVE-2024-0782 | CodeAstro Online Railway Reservation System 1.0 pass-profile.php First Name/Last Name/User Name cross site scripting


๐Ÿ“ˆ 23.88 Punkte

๐Ÿ“Œ How we search the web is changing, so Google Search is changing too


๐Ÿ“ˆ 23.8 Punkte











matomo