Monday, December 30, 2013

Find ssh port number for ftp

Yeah, that!
I could ssh from terminal but wanted to transfer files into a windows. Tried ftp into the server using the filezilla. However, could not confirm the port number. So, this guy did the trick of finding the connected port number.
Once I had access to the port number, I could put that into filezilla, then log in. Neat!

echo ${SSH_CLIENT##* }

No comments: