Segregating ssh session logic and deployment logic.