mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
23 lines
503 B
Bash
23 lines
503 B
Bash
![]() |
#!/usr/bin/env bash
|
||
|
|
||
|
RESTORE='\033[0m'
|
||
|
|
||
|
RED='\033[00;31m'
|
||
|
GREEN='\033[00;32m'
|
||
|
YELLOW='\033[00;33m'
|
||
|
BLUE='\033[00;34m'
|
||
|
PURPLE='\033[00;35m'
|
||
|
CYAN='\033[00;36m'
|
||
|
LIGHTGRAY='\033[00;37m'
|
||
|
|
||
|
LRED='\033[01;31m'
|
||
|
LGREEN='\033[01;32m'
|
||
|
LYELLOW='\033[01;33m'
|
||
|
LBLUE='\033[01;34m'
|
||
|
LPURPLE='\033[01;35m'
|
||
|
LCYAN='\033[01;36m'
|
||
|
WHITE='\033[01;37m'
|
||
|
|
||
|
ipaddr=`python /srv/newsblur/utils/hostname_ssh.py $1`
|
||
|
printf "\n ${BLUE}---> ${LBLUE}Connecting to ${LGREEN}$1${BLUE} / ${LRED}$ipaddr${BLUE} <--- ${RESTORE}\n\n"
|
||
|
ssh $ipaddr
|