File: ssh

package info (click to toggle)
dgit 14.8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,476 kB
  • sloc: perl: 14,136; sh: 7,648; makefile: 346; python: 334; tcl: 69
file content (6 lines) | stat: -rwxr-xr-x 160 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
#!/bin/bash
set -e
cd / # something not writeable, to catch misdirected writes
while [[ ${1:0:1} == "-" ]]; do shift; done
userhost="$1"; shift
exec sh -c "$*"