SSH chaining test code added, function implecated