diff --git a/lib/index.js b/lib/index.js
index <HASH>..<HASH> 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -27,7 +27,8 @@ function isSsh(input) {
     }
 
     // TODO This probably could be improved :)
-    return input.indexOf("@") > 0 && input.indexOf("@") < input.indexOf(":");
+    var urlPortPattern = new RegExp('\.([a-zA-Z\\d]+):(\\d+)\/');
+    return !input.match(urlPortPattern) && input.indexOf("@") < input.indexOf(":");
 }
 
 module.exports = isSsh;
use regex to identify url with ports