SSH setting and some simple function