Skip to content

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
vaniacer committed Oct 8, 2018
1 parent f037eae commit 2e0f13b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sshto
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ function pause {
printf "\n${DEF}"
}

function file_copy { # Copy selected file to server

filename=$(dialog --output-fd 1 --aspect 100 --colors --fselect ./ 10 80)
scp -r $filename $target:~
}

function bye { clear; ls --color=auto; exit 0; }; trap bye INT

# If connecting first time send 'yes' on ssh's request.
Expand Down Expand Up @@ -154,12 +160,6 @@ function second_dialog { # Select command
esac
}

function file_copy { # Copy selected file to server

filename=$(dialog --output-fd 1 --aspect 100 --colors --fselect ./ 10 80)
scp -r $filename $target:~
}

#==================================================================================================
#Create hosts list. Get hosts and descriptions from ~/.ssh/config.
IFSOLD=$IFS; IFS=$'\n'; for host in $(grep "Host " ~/.ssh/config | sed '/\*/d; s/Host //g;'); do
Expand Down

0 comments on commit 2e0f13b

Please sign in to comment.