Re: ssh tutorial

2009-06-11 Thread gmspro

I just did this and it worked for me.

ssh a...@p.q.r.s

p.q.r.s is the ip address of the remote pc.

Both pc have openssh-server,openssh-client installed.

--- On Sun, 6/7/09, Rick Sewill rsew...@cableone.net wrote:

 From: Rick Sewill rsew...@cableone.net
 Subject: Re: ssh tutorial
 To: Community assistance, encouragement, and advice for using Fedora. 
 fedora-list@redhat.com
 Date: Sunday, June 7, 2009, 5:53 AM
 On Sat, 2009-06-06 at 13:24 -0500,
 Gregory P. Ennis wrote:
  On Fri, 2009-06-05 at 23:39 -0700, gmspro wrote:
   Would anyone tell how to use ssh command in
 brief?
   
  
  Cris gave a great explanation.  and looking at
 the man page is also a
  must.
  
  In practical terms ssh replaces telnet so that your
 computer to computer
  connections can be accomplished with encrypted tcp/ip
 packets.  You can
  establish computer to computer connections with
 telnet, but it does not
  customarily encrypt which means the content of your
 connection can be
  sniffed and understood by someone monitoring your
 network.  ssh prevents
  the sniffer from understanding what is being sent from
 computer to
  computer.  
  
  Because ssh is so much better than telnet, telnet
 servers are usually
  turned off and not used. 
  
  Greg
  
 
 Chris' explanation is good.
 
 May I suggest the original questioner needs to find the
 information
 needed to connect to that particular ssh server. 
 The original
 questioner may need to talk with the person (ssh server
 administrator)
 who is running the ssh server.  The ssh server
 administrator should have
 a cookbook telling how to connect to his server.  I am
 assume the
 original questioner is not the ssh server administrator.
 
 The ssh server administrator can configure which ssh
 protocol version(s)
 of ssh will work, what types of authentication will work,
 whether X11
 will will be forwarded, and many other options.  The
 ssh server
 administrator can even force a particular user to execute a
 specific
 program when the user tries to connect.
 
 The ssh server administrator will need to create an account
 and make
 configuration changes to allow people to connect to that
 account.
 Sometimes, a ssh server administrator might create an
 anonymous
 account that runs a particular program, such as cvs to
 allow people to
 anonymously retrieve source code.  In every case that
 I can think of,
 the original questioner will need to find documentation on
 how to
 connect or will need to talk with the ssh server
 administrator.
 
 I would also suggest, using the -v option on the ssh
 command.
 I believe one can type ssh -v -v -v u...@host
 From man ssh, 
 -v  Verbose mode.  Causes ssh to
 print debugging messages about its
 progress.  This is helpful
 in debugging connection, authentica-
 tion, and configuration
 problems.  Multiple -v options increase
 the verbosity.  The
 maximum is 3.
 
 
 The output from the -v -v -v options may help the ssh
 server
 administrator help the original questioner find out what is
 wrong when
 the original questioner tries to connect.
 
 
 
 -Inline Attachment Follows-
 
 -- 
 fedora-list mailing list
 fedora-list@redhat.com
 To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread gmspro

Thanks.
I did this and it works for me.

ssh a...@ipaddress 

But if I do

ssh ipaddress
ssh: connect to host ipaddress port 22: No route to host


--- On Sun, 6/7/09, Chris Tyler ch...@tylers.info wrote:

 From: Chris Tyler ch...@tylers.info
 Subject: Re: ssh tutorial
 To: Community assistance, encouragement, and advice for using Fedora. 
 fedora-list@redhat.com
 Date: Sunday, June 7, 2009, 12:04 AM
 On Fri, 2009-06-05 at 23:39 -0700,
 gmspro wrote:
  Would anyone tell how to use ssh command in brief?
 
 Let me try my hand at a basic primer...
 
 (1) SSH is used to login to a remote computer:
 
 ssh u...@computer
 
 Or:
 ssh -l user computer
 
 Where:
 
 'user' is your username on the remote computer.
 
 'computer' is the hostname of the remote computer, if it
 has a DNS A
 record or an entry in /etc/hosts, or the IP address.
 
 Examples:
 
 ssh ja...@argonaut
 
 Logs in as 'jason' on the computer 'argonaut', assuming
 that the IP
 address for 'argonaut' is listed in the /etc/hosts file.
 This approach
 might be used on a small home network.
 
 ssh ch...@global.proximity.on.ca
 
 Logs in as 'chris' on the computer
 'global.proximity.on.ca', where
 'global.proximity.on.ca' has a correctly-configured DNS
 entry so it can
 be resolved into an IP address. This approach is used for
 almost all
 publicly-accessible machines.
 
 ssh j...@172.16.16.1
 
 Logs in as 'jane' on the computer with the IP address
 172.16.97.1. With
 this approach you need to know the IP address but don't
 require an entry
 in /etc/hosts or a DNS A record. This approach might be
 used when
 initially setting up some machines on a network.
 
 These commands will give you shell access on the remote
 machine, after
 you have provided your password.
 
 Additional information:
 
 - You can leave the username out if it's exactly the same
 as the
 username under which you logged in to the local machine:
 
 ssh global.proximity.on.ca
 
 - You can add a command name if you want to run just one
 command instead
 of accessing a shell. For example, to run 'who' on
 zenit.senecac.on.ca I
 could use:
 
 ssh ch...@zenit.senecac.on.ca
 who
 
 - Adding the '-C' option (note the capital letter) turns on
 compression.
 If you're going through a slow connection, this can improve
 performance.
 If you're on a local connection (LAN), don't bother.
 
 - Adding the '-X' option (again, a capital letter) turns on
 X11
 forwarding. This lets you run a graphical command remotely
 and have it
 display locally, assuming that the local system has an X
 server (e.g.,
 the local computer is running Linux/BSD/Solaris/AIX/...
 with a GUI, or
 it's running OSX or Windows and an X server has been
 started). For
 example:
 
 ssh -XC ch...@concord3 virt-manager
 
 ...will run the virt-manager application on concord3 and
 display the
 virt-manager graphical window on the local display. Note:
 in some
 situations, depending on the ssh server configuration, you
 may need to
 use '-Y' instead of '-X'. (Note that the -C option is also
 being used
 here; its use with -X is strongly recommended).
 
 (2) You can use the related 'scp' secure copy utility (or,
 alternately,
 sftp) to transfer files to and from a remote system using
 ssh:
 
 scp u...@computer:/path/to/file name
 
 This transfers /path/to/file from the account 'user' on the
 remote
 system 'computer' to 'name' on the local system. Note that
 this is the
 same syntax as the 'cp' (copy) command, except that
 'u...@computer' is
 placed in front of the source filename.
 
 Examples:
 
 scp ch...@concord3:/etc/services c3s
 
 The file /etc/services on concord3 (using account name
 'chris') is
 transferred to the file 'c3s' in the local current
 directory.
 
 scp ch...@concord3:~/todo.txt .
 
 The file 'todo.txt' in the home directory of user 'chris'
 on 'concord3'
 is transferred to the current directory ('.').
 
 You can also transfer *to* a remote system, by putting the
 u...@computer
 part in front of the destination file:
 
 scp todo.txt ja...@host3.example.com:/tmp/
 
 The file 'todo.txt' on the local system (current directory)
 is
 transferred to the /tmp directory on the system
 'host3.example.com'
 using the account 'jason'.
 
 (3) See the ssh documentation for information on how to use
 ssh with
 public/private keys, eliminating the need to constantly
 retype the
 password.
 
 Hope this is useful--
 
 --
 Chris Tyler
 
 -- 
 fedora-list mailing list
 fedora-list@redhat.com
 To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
 


  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread Timothy Murphy
gmspro wrote:

 I did this and it works for me.
 
 ssh a...@ipaddress 
 
 But if I do
 
 ssh ipaddress
 ssh: connect to host ipaddress port 22: No route to host

I would try
ssh -v ipaddress
and
ssh -l abc ipaddress

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


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread gmspro

--- On Sat, 6/6/09, Timothy Murphy gayle...@eircom.net wrote:

 From: Timothy Murphy gayle...@eircom.net
 Subject: Re: ssh tutorial
 To: fedora-list@redhat.com
 Date: Saturday, June 6, 2009, 6:49 PM
 Uwe Kiewel wrote:
 
  yourname=linux user account  // Am i
 correct?
  yourserver=??
  
  No.
  ssh -l yourusername yourserver


I also think,it is a wrong format.

Correct format is :
ssh yourn...@yourserver


  
  ssh username_at_remote_ser...@remote_server is also
 possible
 
 Apologies.
 I thought I had tried that in the past, and it did not
 work.
 But it seems fine now.
 
 
 -- 
 Timothy Murphy
 e-mail: gayleard /at/ eircom.net
 tel: +353-86-2336090, +353-1-2842366
 s-mail: School of Mathematics, Trinity College Dublin,
 Ireland
 
 



  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread gmspro

 I would try
 ssh -v ipaddress

This does not work.
It says permission denied after giving the password three times.

 and
 ssh -l abc ipaddress
Giving the same password this works.



  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread Sharpe, Sam J
2009/6/11 gmspro gms...@yahoo.com:

 --- On Sat, 6/6/09, Timothy Murphy gayle...@eircom.net wrote:

 From: Timothy Murphy gayle...@eircom.net
 Subject: Re: ssh tutorial
 To: fedora-list@redhat.com
 Date: Saturday, June 6, 2009, 6:49 PM
 Uwe Kiewel wrote:

  yourname=linux user account  // Am i
 correct?
  yourserver=??
 
  No.
  ssh -l yourusername yourserver


 I also think,it is a wrong format.

 Correct format is :
 ssh yourn...@yourserver

Both a correct formats.

ssh -l sam machine.mydomain.com == ssh s...@machine.mydomain.com



-- 
Sam

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread gmspro

   ssh -l yourusername yourserver

Sorry,It is also correct.

 
 
 I also think,it is a wrong format.
 
 Correct format is :
 ssh yourn...@yourserver



  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread gmspro



--- On Thu, 6/11/09, Sharpe, Sam J sam.sharpe+lists.red...@gmail.com wrote:

 From: Sharpe, Sam J sam.sharpe+lists.red...@gmail.com
 Subject: Re: ssh tutorial
 To: Community assistance, encouragement, and advice for using Fedora. 
 fedora-list@redhat.com
 Date: Thursday, June 11, 2009, 4:18 PM
 2009/6/11 gmspro gms...@yahoo.com:
 
  --- On Sat, 6/6/09, Timothy Murphy gayle...@eircom.net
 wrote:
 
  From: Timothy Murphy gayle...@eircom.net
  Subject: Re: ssh tutorial
  To: fedora-list@redhat.com
  Date: Saturday, June 6, 2009, 6:49 PM
  Uwe Kiewel wrote:
 
   yourname=linux user account  // Am
 i
  correct?
   yourserver=??
  
   No.
   ssh -l yourusername yourserver
 
 
  I also think,it is a wrong format.
 
  Correct format is :
  ssh yourn...@yourserver
 
 Both a correct formats.
 
 ssh -l sam machine.mydomain.com == ssh s...@machine.mydomain.com
 
 
 
 -- 
 Sam
 

Yes ,both are correct.Sorry for previous post.


  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread Sharpe, Sam J
2009/6/11 gmspro gms...@yahoo.com:

 I would try
     ssh -v ipaddress

 This does not work.
 It says permission denied after giving the password three times.

 and
     ssh -l abc ipaddress
 Giving the same password this works.

Is your username on the machine you are ssh'ing from the same as your
username on the machine you are ssh'ing to?

If your username locally is USERLOCAL, then ssh -v ipaddress is
equivalent to ssh -v userlo...@ipaddress or ssh -v -l USERLOCAL
ipaddress

If your usernames are the same, then the only way I can see ssh
ipaddress failing while ssh -l username ipaddress succeeds is if
your .ssh/config file has a specific username for that machine set -
something like this:
# cat .ssh/config
Host1.2.3.4
Userremoteuser

The -l argument to ssh would override that, but without the -l you
would be trying to ssh -l remoteuser 1.2.3.4

-- 
Sam

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread gmspro

 Is your username on the machine you are ssh'ing from the
 same as your
 username on the machine you are ssh'ing to?

Never, usernames are different.

 
 If your username locally is USERLOCAL, then ssh -v
 ipaddress is
 equivalent to ssh -v userlo...@ipaddress or ssh -v -l
 USERLOCAL
 ipaddress
Username is not USERLOCAL
 
 If your usernames are the same, then the only way I can see
 ssh
 ipaddress failing while ssh -l username ipaddress
 succeeds is if
 your .ssh/config file has a specific username for that
 machine set -
 something like this:
 # cat .ssh/config

There is no file like config in .ssh directory.
There is only one file here: known_hosts


 Host
 1.2.3.4
 User
 remoteuser
 
 The -l argument to ssh would override that, but without the
 -l you
 would be trying to ssh -l remoteuser 1.2.3.4
 
 -- 
 Sam
 



  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread Sharpe, Sam J
2009/6/11 gmspro gms...@yahoo.com:

 Is your username on the machine you are ssh'ing from the
 same as your
 username on the machine you are ssh'ing to?

 Never, usernames are different.

Well that is why ssh -l abc ipaddress and ssh a...@ipaddress work
for you, but ssh ipaddress won't.

You are trying to login to your remote machine with the username you
use on your local machine! If you want to set it up so that you don't
need to type the username, you need to investigate the .ssh/config
file (man ssh_config for details)

-- 
Sam

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-11 Thread gmspro

 file (man ssh_config for details)

That's a long tutorial.I will read this if possible.
However thanks for your reply.

 
 -- 
 Sam



  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-07 Thread Rick Sewill
On Sat, 2009-06-06 at 17:26 -0700, gmspro wrote:
 Many thanks.
 This is a great tutorial.
 It helps to learn basic uses of ssh.
 I was looking for this.
 It saved my time from googling and reading long man ssh page.
 
 One last thing,reading other mail from fedora-list I knew that I
 must be the ssh administrator for log-in using ssh.
 
 How can I be the ssh administrator?Is it possible for me?
 Or is there any ssh server(free) where I can log-in using ssh without 
 bothering about being ssh server administration or concerning of having an 
 account in remote computer by the ssh administration.
 

Like telnet, ssh works in a client-server fashion.

When one does telnet ja...@argonaut, one is running the telnet client on
one's PC.  One is connecting to the telnet daemon (telnet server) on the
computer, argonaut.

Similarly, when one does ssh ja...@argonaut, one is running the ssh
client on one's PC.  One is connecting to the ssh daemon (ssh server) on
the computer, argonaut. 

To make this example concrete, let us first get specific information on
a specific implementation of ssh.  You might be using the ssh client
from openssh.  
Please see the URL: http://openssh.com/
In the second paragraph, at the time of this message, they mention the
ssh program, and they mention the program, sshd, calling sshd the server
side of the package.
The ssh program has a URL to the openbsd man page for ssh:
http://www.openbsd.org/cgi-bin/man.cgi?query=sshsektion=1
The sshd program has a URL to the openbsd man page for sshd:
http://www.openbsd.org/cgi-bin/man.cgi?query=sshdsektion=8

Let's say the name of your computer is jefferson.  You wish to connect
to the remote computer, argonaut.  On the remote computer, argonaut, is
the account, jason.

On your computer, jefferson, you do the command, ssh ja...@argonaut.

Your ssh client, on jefferson, will attempt to connect to the ssh
server, running on the computer, argonaut.  The user name, jason, needs
to exist on the computer, argonaut.  If you are supposed to give a
password, the password will be the password used on the computer,
argonaut.  

The ssh server administrator controls the computer, argonaut.  
He must set up the account, jason, on the computer, argonaut.  He must
allow people to ssh to the account, jason, on argonaut.  He will
configure what types of authentications are permitted.  He will
configure if you can enter the password for the account, jason, to
log-in, or you need public key authentication.  He will configure other
options.

I assume you are not the ssh server administrator for argonaut.  I
assume you do not control the computer, argonaut, in our example.

If you did control the computer, argonaut, and were trying to connect to
the computer, argonaut, from another computer, you would need to know
how to configure the ssh server running on argonaut.  Configuring a ssh
server incorrectly is a security risk.  If you need to do this, I would
suggest you find a person, you trust, who has configured ssh servers
before, to help you do this.

You ask the question, could someone let you use ssh to connect to their
computer without creating an account on their computer?  The answer is
no.  They have to set up the account.  

They might set up an anonymous or guest account that allows limited
access for a specific purpose, but that account, be it anonymous or
guest must be set up.  

An anonymous account might be set up that lets you download publicly
available source code for Linux using cvs.  You wouldn't be able to do
anything else.  You wouldn't be able to use that account to do shell
commands on their computer.

You wish to use ssh to connect to the remote computer so you can issue
shell commands.  This requires a higher degree of trust.  The people
controlling the computer, argonaut, need to be able to identify who you
are.  They need to be able to trust you are who you say you are.




signature.asc
Description: This is a digitally signed message part
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: ssh tutorial

2009-06-06 Thread Craig White
On Fri, 2009-06-05 at 23:39 -0700, gmspro wrote:
 Would anyone tell how to use ssh command in brief?

ssh --help

less brief

man ssh

Craig


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread gmspro

Can anyone give an example how to log in remote computer with ssh?


--- On Sat, 6/6/09, Craig White craigwh...@azapple.com wrote:

 From: Craig White craigwh...@azapple.com
 Subject: Re: ssh tutorial
 To: Community assistance, encouragement, and advice for using Fedora. 
 fedora-list@redhat.com
 Date: Saturday, June 6, 2009, 1:51 PM
 On Fri, 2009-06-05 at 23:39 -0700,
 gmspro wrote:
  Would anyone tell how to use ssh command in brief?
 
 ssh --help
 
 less brief
 
 man ssh
 
 Craig
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 
 -- 
 fedora-list mailing list
 fedora-list@redhat.com
 To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
 


  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread gmspro

Some confusion

ssh yourusern...@yourserver 

Here 
yourname=linux user account  // Am i correct?
yourserver=??



  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread Timothy Murphy
gmspro wrote:

 
 Some confusion
 
 ssh yourusern...@yourserver
 
 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.

Nb The remote machine must be running sshd
(and accept your connection).

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


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread Uwe Kiewel
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Timothy Murphy schrieb:
 gmspro wrote:
 
 Some confusion

 ssh yourusern...@yourserver

 Here
 yourname=linux user account  // Am i correct?
 yourserver=??
 
 No.
   ssh -l yourusername yourserver

ssh username_at_remote_ser...@remote_server is also possible


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIVAwUBSioyzkJXG7BUuynnAQJXzw/7BAq38Y/j1kX8yGc6+88dPpAxz6KQiSbe
QTeyD9rshAvsX2r5SCCQwEKE4XUi5N7Nkjw/KT9pwowRYNZgHeRd6dq8qWZeravh
l90uV6cOyZnL46vPc5KEsI2at4h6+ueGQ2BYSNx5fZ7ldGY29z1cLSJmHJiUJNvT
JcaHaMA5AK5quI7+AnEdLG6EXA1YGMk93I4Z57M/2F561ywVXONXxoQH/XYw+HUm
N0By9UPhUc3etCCRY9KznjmdMcWdqg6jZ4Fri9JMsmUGIXqDleR5SBodNqsmSkGR
PVFGY6Z4usXyJg1ZEtNXqcBJVOGK9fhzlo7H6uk9ov2Q65WxvMMCK5kcC0T0zViM
FfiV181a+6dhG3ffpbH5comwT+1+yj92GXKvAx39IhJkUoQGrdOLDcvZU3HN1hO8
Mh+qOg9S342eOAZvJ4xrdq15RE2bkVm1dvvMU2NEb6Sc9Z0Sk0/uau0/HsP1JMRd
ZyieVA7o9dPQfxNAW4CpFzeGqOG+j7JnXvT2bSNzd+IaywEA77o/luMhBh+FEI4U
oXjCecJz17p0OA0Eb404qX/cQ8jyb2jyAsakOxU9u1+tDvH4IPFXvVvVMh6aYGTZ
REQsYYMDaLgF72/FlOd91b3givCj7X0AYqkHUVLLzdg1TtccIOZy8fXQ0s5IbuQg
4O5SyhJo5y4=
=p30L
-END PGP SIGNATURE-

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread gmspro

Thank you.
Can you give a specific example of 

ssh yourserver

What would be the yourserver?

--- On Sat, 6/6/09, Timothy Murphy gayle...@eircom.net wrote:

 From: Timothy Murphy gayle...@eircom.net
 Subject: Re: ssh tutorial
 To: fedora-list@redhat.com
 Date: Saturday, June 6, 2009, 2:37 PM
 gmspro wrote:
 
  
  Some confusion
  
  ssh yourusern...@yourserver
  
  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.
 
 Nb The remote machine must be running sshd
 (and accept your connection).
 
 -- 
 Timothy Murphy
 e-mail: gayleard /at/ eircom.net
 tel: +353-86-2336090, +353-1-2842366
 s-mail: School of Mathematics, Trinity College Dublin,
 Ireland
 
 
 -- 
 fedora-list mailing list
 fedora-list@redhat.com
 To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
 


  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread Joachim Backes

gmspro wrote:

Thank you.
Can you give a specific example of 


ssh yourserver


ssh alpha.beta.gamma.org

tries to login as yourself at alpha.beta.gamma.org where you have an 
account.


On alpha.beta.gamma.org, sshd must be running.



What would be the yourserver?

--- On Sat, 6/6/09, Timothy Murphy gayle...@eircom.net wrote:


From: Timothy Murphy gayle...@eircom.net
Subject: Re: ssh tutorial
To: fedora-list@redhat.com
Date: Saturday, June 6, 2009, 2:37 PM
gmspro wrote:


Some confusion

ssh yourusern...@yourserver

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.

Nb The remote machine must be running sshd
(and accept your connection).

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


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines




  




--

Joachim Backes joachim.bac...@rhrk.uni-kl.de

http://www.rhrk.uni-kl.de/~backes



smime.p7s
Description: S/MIME Cryptographic Signature
-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

Re: ssh tutorial

2009-06-06 Thread Robert P. J. Day
On Sat, 6 Jun 2009, gmspro wrote:


 Thank you.
 Can you give a specific example of

 ssh yourserver

 What would be the yourserver?

  i'm sorry but i have to ask -- do you actually know what the ssh
command is supposed to do?  seriously, asking how to use ssh,
reproducing the sample line ssh yourserver and asking what to put in
place of yourserver is like saying, i want to log into another
machine with telnet.  help tells me that the command is 'telnet
othermachine'.  what do i use for 'othermachine'?

  i apologize if that sounds harsh but, given that you've asked the
same trivial question about four times now, i'm not convinced that
you're ready for ssh.

rday
--


Robert P. J. Day   Waterloo, Ontario, CANADA

Linux Consulting, Training and Annoying Kernel Pedantry.

Web page:  http://crashcourse.ca
Linked In: http://www.linkedin.com/in/rpjday
Twitter:   http://twitter.com/rpjday


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread gerrynix

 Thank you.
 Can you give a specific example of

 ssh yourserver

 What would be the yourserver?

  i'm sorry but i have to ask -- do you actually know what the ssh
command is supposed to do?  seriously, asking how to use ssh,
reproducing the sample line ssh yourserver and asking what to put in
place of yourserver is like saying, i want to log into another
machine with telnet.  help tells me that the command is 'telnet
othermachine'.  what do i use for 'othermachine'?

  i apologize if that sounds harsh but, given that you've asked the
same trivial question about four times now, i'm not convinced that
you're ready for ssh.

rday
--

Excellent resource: http://kimmo.suominen.com/docs/ssh/
Others are available: Google search - ssh tutorial

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread Timothy Murphy
Uwe Kiewel wrote:

 yourname=linux user account  // Am i correct?
 yourserver=??
 
 No.
 ssh -l yourusername yourserver
 
 ssh username_at_remote_ser...@remote_server is also possible

Apologies.
I thought I had tried that in the past, and it did not work.
But it seems fine now.


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


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread Timothy Murphy
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 yourn...@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


-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread Chris Tyler
On Fri, 2009-06-05 at 23:39 -0700, gmspro wrote:
 Would anyone tell how to use ssh command in brief?

Let me try my hand at a basic primer...

(1) SSH is used to login to a remote computer:

ssh u...@computer

Or:
ssh -l user computer

Where:

'user' is your username on the remote computer.

'computer' is the hostname of the remote computer, if it has a DNS A
record or an entry in /etc/hosts, or the IP address.

Examples:

ssh ja...@argonaut

Logs in as 'jason' on the computer 'argonaut', assuming that the IP
address for 'argonaut' is listed in the /etc/hosts file. This approach
might be used on a small home network.

ssh ch...@global.proximity.on.ca

Logs in as 'chris' on the computer 'global.proximity.on.ca', where
'global.proximity.on.ca' has a correctly-configured DNS entry so it can
be resolved into an IP address. This approach is used for almost all
publicly-accessible machines.

ssh j...@172.16.16.1

Logs in as 'jane' on the computer with the IP address 172.16.97.1. With
this approach you need to know the IP address but don't require an entry
in /etc/hosts or a DNS A record. This approach might be used when
initially setting up some machines on a network.

These commands will give you shell access on the remote machine, after
you have provided your password.

Additional information:

- You can leave the username out if it's exactly the same as the
username under which you logged in to the local machine:

ssh global.proximity.on.ca

- You can add a command name if you want to run just one command instead
of accessing a shell. For example, to run 'who' on zenit.senecac.on.ca I
could use:

ssh ch...@zenit.senecac.on.ca who

- Adding the '-C' option (note the capital letter) turns on compression.
If you're going through a slow connection, this can improve performance.
If you're on a local connection (LAN), don't bother.

- Adding the '-X' option (again, a capital letter) turns on X11
forwarding. This lets you run a graphical command remotely and have it
display locally, assuming that the local system has an X server (e.g.,
the local computer is running Linux/BSD/Solaris/AIX/... with a GUI, or
it's running OSX or Windows and an X server has been started). For
example:

ssh -XC ch...@concord3 virt-manager

...will run the virt-manager application on concord3 and display the
virt-manager graphical window on the local display. Note: in some
situations, depending on the ssh server configuration, you may need to
use '-Y' instead of '-X'. (Note that the -C option is also being used
here; its use with -X is strongly recommended).

(2) You can use the related 'scp' secure copy utility (or, alternately,
sftp) to transfer files to and from a remote system using ssh:

scp u...@computer:/path/to/file name

This transfers /path/to/file from the account 'user' on the remote
system 'computer' to 'name' on the local system. Note that this is the
same syntax as the 'cp' (copy) command, except that 'u...@computer' is
placed in front of the source filename.

Examples:

scp ch...@concord3:/etc/services c3s

The file /etc/services on concord3 (using account name 'chris') is
transferred to the file 'c3s' in the local current directory.

scp ch...@concord3:~/todo.txt .

The file 'todo.txt' in the home directory of user 'chris' on 'concord3'
is transferred to the current directory ('.').

You can also transfer *to* a remote system, by putting the u...@computer
part in front of the destination file:

scp todo.txt ja...@host3.example.com:/tmp/

The file 'todo.txt' on the local system (current directory) is
transferred to the /tmp directory on the system 'host3.example.com'
using the account 'jason'.

(3) See the ssh documentation for information on how to use ssh with
public/private keys, eliminating the need to constantly retype the
password.

Hope this is useful--

--
Chris Tyler

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread Gregory P. Ennis
On Fri, 2009-06-05 at 23:39 -0700, gmspro wrote:
 Would anyone tell how to use ssh command in brief?
 

Cris gave a great explanation.  and looking at the man page is also a
must.

In practical terms ssh replaces telnet so that your computer to computer
connections can be accomplished with encrypted tcp/ip packets.  You can
establish computer to computer connections with telnet, but it does not
customarily encrypt which means the content of your connection can be
sniffed and understood by someone monitoring your network.  ssh prevents
the sniffer from understanding what is being sent from computer to
computer.  

Because ssh is so much better than telnet, telnet servers are usually
turned off and not used. 

Greg

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread gmspro

Yes,I am not ssh administrator.

 Chris' explanation is good.
 
 May I suggest the original questioner needs to find the
 information
 needed to connect to that particular ssh server. 
 The original
 questioner may need to talk with the person (ssh server
 administrator)
 who is running the ssh server.  The ssh server
 administrator should have
 a cookbook telling how to connect to his server.  I am
 assume the
 original questioner is not the ssh server administrator.
 
 The ssh server administrator can configure which ssh
 protocol version(s)
 of ssh will work, what types of authentication will work,
 whether X11
 will will be forwarded, and many other options.  The
 ssh server
 administrator can even force a particular user to execute a
 specific
 program when the user tries to connect.
 
 The ssh server administrator will need to create an account
 and make
 configuration changes to allow people to connect to that
 account.
 Sometimes, a ssh server administrator might create an
 anonymous
 account that runs a particular program, such as cvs to
 allow people to
 anonymously retrieve source code.  In every case that
 I can think of,
 the original questioner will need to find documentation on
 how to
 connect or will need to talk with the ssh server
 administrator.
 
 I would also suggest, using the -v option on the ssh
 command.
 I believe one can type ssh -v -v -v u...@host
 From man ssh, 
 -v      Verbose mode.  Causes ssh to
 print debugging messages about its
         progress.  This is helpful
 in debugging connection, authentica-
         tion, and configuration
 problems.  Multiple -v options increase
         the verbosity.  The
 maximum is 3.
 
 
 The output from the -v -v -v options may help the ssh
 server
 administrator help the original questioner find out what is
 wrong when
 the original questioner tries to connect.



  

-- 
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines


Re: ssh tutorial

2009-06-06 Thread gmspro

Many thanks.
This is a great tutorial.
It helps to learn basic uses of ssh.
I was looking for this.
It saved my time from googling and reading long man ssh page.

One last thing,reading other mail from fedora-list I knew that I
must be the ssh administrator for log-in using ssh.

How can I be the ssh administrator?Is it possible for me?
Or is there any ssh server(free) where I can log-in using ssh without bothering 
about being ssh server administration or concerning of having an account in 
remote computer by the ssh administration.

--- On Sun, 6/7/09, Chris Tyler ch...@tylers.info wrote:

 From: Chris Tyler ch...@tylers.info
 Subject: Re: ssh tutorial
 To: Community assistance, encouragement, and advice for using Fedora. 
 fedora-list@redhat.com
 Date: Sunday, June 7, 2009, 12:04 AM
 On Fri, 2009-06-05 at 23:39 -0700,
 gmspro wrote:
  Would anyone tell how to use ssh command in brief?
 
 Let me try my hand at a basic primer...
 
 (1) SSH is used to login to a remote computer:
 
     ssh u...@computer
 
 Or:
     ssh -l user computer
 
 Where:
 
 'user' is your username on the remote computer.
 
 'computer' is the hostname of the remote computer, if it
 has a DNS A
 record or an entry in /etc/hosts, or the IP address.
 
 Examples:
 
     ssh ja...@argonaut
 
 Logs in as 'jason' on the computer 'argonaut', assuming
 that the IP
 address for 'argonaut' is listed in the /etc/hosts file.
 This approach
 might be used on a small home network.
 
     ssh ch...@global.proximity.on.ca
 
 Logs in as 'chris' on the computer
 'global.proximity.on.ca', where
 'global.proximity.on.ca' has a correctly-configured DNS
 entry so it can
 be resolved into an IP address. This approach is used for
 almost all
 publicly-accessible machines.
 
     ssh j...@172.16.16.1
 
 Logs in as 'jane' on the computer with the IP address
 172.16.97.1. With
 this approach you need to know the IP address but don't
 require an entry
 in /etc/hosts or a DNS A record. This approach might be
 used when
 initially setting up some machines on a network.
 
 These commands will give you shell access on the remote
 machine, after
 you have provided your password.
 
 Additional information:
 
 - You can leave the username out if it's exactly the same
 as the
 username under which you logged in to the local machine:
 
     ssh global.proximity.on.ca
 
 - You can add a command name if you want to run just one
 command instead
 of accessing a shell. For example, to run 'who' on
 zenit.senecac.on.ca I
 could use:
 
     ssh ch...@zenit.senecac.on.ca
 who
 
 - Adding the '-C' option (note the capital letter) turns on
 compression.
 If you're going through a slow connection, this can improve
 performance.
 If you're on a local connection (LAN), don't bother.
 
 - Adding the '-X' option (again, a capital letter) turns on
 X11
 forwarding. This lets you run a graphical command remotely
 and have it
 display locally, assuming that the local system has an X
 server (e.g.,
 the local computer is running Linux/BSD/Solaris/AIX/...
 with a GUI, or
 it's running OSX or Windows and an X server has been
 started). For
 example:
 
     ssh -XC ch...@concord3 virt-manager
 
 ...will run the virt-manager application on concord3 and
 display the
 virt-manager graphical window on the local display. Note:
 in some
 situations, depending on the ssh server configuration, you
 may need to
 use '-Y' instead of '-X'. (Note that the -C option is also
 being used
 here; its use with -X is strongly recommended).
 
 (2) You can use the related 'scp' secure copy utility (or,
 alternately,
 sftp) to transfer files to and from a remote system using
 ssh:
 
     scp u...@computer:/path/to/file name
 
 This transfers /path/to/file from the account 'user' on the
 remote
 system 'computer' to 'name' on the local system. Note that
 this is the
 same syntax as the 'cp' (copy) command, except that
 'u...@computer' is
 placed in front of the source filename.
 
 Examples:
 
     scp ch...@concord3:/etc/services c3s
 
 The file /etc/services on concord3 (using account name
 'chris') is
 transferred to the file 'c3s' in the local current
 directory.
 
     scp ch...@concord3:~/todo.txt .
 
 The file 'todo.txt' in the home directory of user 'chris'
 on 'concord3'
 is transferred to the current directory ('.').
 
 You can also transfer *to* a remote system, by putting the
 u...@computer
 part in front of the destination file:
 
     scp todo.txt ja...@host3.example.com:/tmp/
 
 The file 'todo.txt' on the local system (current directory)
 is
 transferred to the /tmp directory on the system
 'host3.example.com'
 using the account 'jason'.
 
 (3) See the ssh documentation for information on how to use
 ssh with
 public/private keys, eliminating the need to constantly
 retype the
 password.
 
 Hope this is useful--
 
 --
 Chris Tyler
 
 -- 
 fedora-list mailing list
 fedora-list@redhat.com
 To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 Guidelines: http://fedoraproject.org/wiki