sshd, yes, you can do that. xterm, propably not, since the video system of android is not X but something androidy stuff.