try to modify ssh with port check, unfinished.