ssh tutorial

Timothy Murphy gayleard at eircom.net
Sat Jun 6 13:14:19 UTC 2009


gmspro wrote:

> 
> Thank you.
> Can you give a specific example of
> 
> ssh yourserver
> 
> What would be the "yourserver"?

1) You could use the IP address of the machine you are trying to connect to,
eg
	ssh 192.168.1.4

2) Or if you have the name of the machine in your /etc/hosts 
you could use that, eg

	ssh joe

3) Or you could give the complete name of the machine, eg

	ssh maths.tcd.ie

(Nb This won't work because you don't have an account on this machine,
and even if you did you would have had to somehow get your public key,
generated with "ssh-keygen", into your .ssh directory on this machine.
In other words, you need the blessing of the person 
running the remote machine.)

>> > Here
>> > yourname=linux user account  // Am i correct?
>> > yourserver=??
>> 
>> No.
>> ssh -l yourusername yourserver
>> Or just
>> ssh yourserver
>> 
>> if the user name is the same on both machines.

Note.
I was wrong in saying that "ssh yourname at yourserver" would not work.


-- 
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin, Ireland





More information about the fedora-list mailing list