Posts

Showing posts from December 4, 2018

Connection Timed Out when trying to SSH from Linux (Ubuntu) to Windows 10

Image
Clash Royale CLAN TAG #URR8PPP up vote -1 down vote favorite I'm trying to SSH from my Linux machine running Ubuntu to my Windows 10 machine. However, when trying to connect, the terminal 'freezes' and eventually prompts me with a Connection Timed Out error. Using SSH from my Windows to Linux machine works perfectly, it's the other way around that keeps spitting Connection Timed Out errors at me. I first thought it was that I was using a Microsoft account to log into my Windows machine so I changed it to a local user but the SSH still failed with a Connection Timed Out (and yes I was using the local account username) Message: ssh: connection to host 192.168.*.** port 22: Connection timed out I've scoured so many forums and articles looking for a solution but I couldn't find anything. ubuntu ssh windows ssh-tunneling share | improve this question asked Nov 27 at 3:02 Cam J 1 3 Do you have an SSH server running o...

Cantavieja

Image
Municipality in Aragón, Spain Cantavieja Municipality General view Coat of arms Cantavieja Location in Spain Coordinates: 40°30′N 0°24′W  /  40.500°N 0.400°W  / 40.500; -0.400 Coordinates: 40°30′N 0°24′W  /  40.500°N 0.400°W  / 40.500; -0.400 Country   Spain Autonomous community   Aragón Province Teruel Comarca Maestrazgo Judicial district Alcañiz Commonwealth El Maestrazgo Founded 1197 Government  • Alcalde Miguel Ángel Serrano Godoy (2007) Area  • Total 124.56 km 2 (48.09 sq mi) Elevation 1,290 m (4,230 ft) Population (2016)  • Total 712  • Density 5.7/km 2 (15/sq mi) Demonym(s) Cantaviejo, -a Time zone UTC+1 (CET)  • Summer (DST) UTC+2 (CEST) Postal code 44140 Dialing code (+34)964 Official language(s) Spanish Website Official websi...

grep exact string over ssh with variables [closed]

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite I am trying to execute a script which grep the mount from fstab. when script is executed it gives multiple mounts matching the words instead of exact word matching. #!/bin/bash FNAME=$1 NFSSERVER=$2 NFSSHARE=$3 FILEPATH=/home/kumar/files [ $# -ne 3 ] && echo "Usage: ./$0 FILENAME NFSSHARE NFSSERVER "; exit 1; for I in `cat $FILEPATH/$FNAME|tr ":" "n"` do echo | tee -a $FILEPATH/$NFSSERVER-$NFSSHARE-fstab.txt echo -e "$I ~ c" | tee -a $FILEPATH/$NFSSERVER-$NFSSHARE-fstab.txt sshpass -f $FILEPATH/.pass ssh -q $I "grep -w $NFSSHARE /etc/fstab | grep -i $NFSSERVER" | tee -a $FILEPATH/$NFSSERVER-$NFSSHARE-fstab.txt done If I search for "apps_stage" NFSSHARE then the output comes for apps_stage, apps_stage_new, apps_stage_log. But the expected output is only for apps_stage. The above script gives below output nfs-1:/apps_stage /apps nfs _netdev,noloc...