dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit e26c6fb3b93ae07e112fd04a0519c277a7b45b1e
parent 2e3f298993a86322eff86a3248256f3f7fce5b49
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Mon, 17 Nov 2025 18:16:40 +0100

sshw: add pwonly option

Diffstat:
Mscripts/sshw | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/scripts/sshw b/scripts/sshw @@ -21,6 +21,9 @@ for {set i 0} {$i < $argc} {incr i} { sftp { lset command 0 sftp } + pwonly { + set pwonly 1 + } -C - -A - -X - @@ -108,6 +111,11 @@ proc login {pass command} { # Log in login $pass $command +if { [info exists pwonly] } { + send -- "exit\r" + exit 0 +} + # Elevate privileges if { [lindex $command 0] == "ssh" } { send -- "sudo su\n"