How do I setup/use SSH?

Asked by Michael James

I have no idea on how to do it. I am somewhat experienced in linux.

Thanks bunches!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Gord Allott
Solved:
Last query:
Last reply:
Revision history for this message
Best Gord Allott (gordallott) said :
#1

you can find a handy guide here :) : https://help.ubuntu.com/community/SSHHowto

Revision history for this message
bodhi.zazen (bodhi.zazen) said :
#2

And do not forget to secure it :)

https://wiki.ubuntu.com/AdvancedOpenSSH

Revision history for this message
Michael James (mbj1103) said :
#3

Thanks both of you, but now I am having a problem with getting it to work with the -X option. Doing echo $DISPLAY gives back just an empty line; and the computer I am connecting to does have xauth installed. When I do the -X command I get:
/usr/bin/X11/xauth: /home/michael/.Xauthority not writable, changes will be ignored

With sudo on ssh:
/usr/bin/X11/xauth: error in locking authority file /home/michael/.Xauthority

Help please.

Revision history for this message
thobbs (tylerlhobbs) said :
#4

Perhaps try deleting the .Xauthority file.

> sudo rm .Xauthority

I don't know very much, but I believe if you delete it, it will make a new one next time you login.
Using the -Y option might also work.
Hopefully somebody else can provide more information.
 - Tyler -

Revision history for this message
Michael James (mbj1103) said :
#5

Thanks Gord Allott, that solved my question.