summaryrefslogtreecommitdiffstats
path: root/ssh-mount.sh
blob: 018b1e22a9fffb69142d779eb44aa2b82b41d004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh


if [ "$1" = "" ] || [ "$1" = "-h" ]; then 
 echo -e "${blue}Usage:$NC mount-ftp <server_string>";
 echo -e "${green}Servers:$NC ipx";
 exit 1
else
	case $1 in
		ipx)
			sshfs web0@nevera: -p 22222 workspace/ipx_ssh &&
			echo -e "${GREEN}IPX mounted.$NC"
		;;
		*)           echo -e "${RED}Error:$NC Unknown Server" ;;
	esac
 
fi