Move the scp and ssh functionality to the Command class