Upgrade to 1.5. This include:
* Fix for using cvs-safesh with different remote and local username * Extended scpsh implementation w/target variable * Correction of new target message
This commit is contained in:
parent
7ac496bbd4
commit
4c1f9ea239
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75906
3 changed files with 23 additions and 4 deletions
|
@ -8,7 +8,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= safesh
|
||||
PORTVERSION= 1.4
|
||||
PORTVERSION= 1.5
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
#!/bin/sh
|
||||
if [ "$2" = "-l" ]; then
|
||||
exec safesh $3@$1 -- "$@"
|
||||
else
|
||||
exec safesh $1 -- "$@"
|
||||
fi
|
||||
|
|
|
@ -39,7 +39,7 @@ shift 2> /dev/null;
|
|||
HOSTDIR=$AKEYS/$USER@${HOST}-22
|
||||
if [ ! -d $HOSTDIR ]; then
|
||||
while ! [ "$answer" = "yes" -o "$answer" = "no" ]; do
|
||||
echo -n "New host $HOST - create key (yes/no)? " 1>&2
|
||||
echo -n "New user/host pair $USER@$HOST - create key (yes/no)? " 1>&2
|
||||
read answer
|
||||
done
|
||||
if [ "$answer" = "no" ]; then
|
||||
|
@ -115,7 +115,22 @@ fi
|
|||
|
||||
BASENAME=`basename $0`
|
||||
if [ "$BASENAME" = "scpsh" ]; then
|
||||
exec $SHELL -i
|
||||
# Print information if we are running entirely interactive (or
|
||||
# somebody is attempting to make us believe we are)
|
||||
if [ -t 0 -a -t 1 -a -t 2 ]; then
|
||||
echo ">>>" 1>&2
|
||||
echo ">>> Starting up shell with authentication variables." 1>&2
|
||||
echo ">>> You can now scp to $USER@$HOST without passwords." 1>&2
|
||||
if [ "$TGT" = "" ]; then
|
||||
echo ">>> $USER@$HOST is available through the shorthand \$TGT" 1>&2
|
||||
fi
|
||||
echo ">>>" 1>&2
|
||||
fi
|
||||
if [ "$TGT" = "" ]; then
|
||||
TGT=$USER@$HOST
|
||||
export TGT
|
||||
fi
|
||||
exec $SHELL
|
||||
elif [ "$BASENAME" = "safeshinstall" ]; then
|
||||
cat $HOSTDIR/id_dsa.pub | ssh $USER@$HOST 'mkdir -p .ssh && cat >> .ssh/authorized_keys2'
|
||||
elif [ "$1" = "" ]; then
|
||||
|
|
Loading…
Reference in a new issue