static SSHSession sshSession(S user, S host) ctex { SSHClient client = sshLogin(user, host); try { final Session session = client.startSession(); ret SSHSession(client, session); } on fail { client.disconnect(); } }