SSH

OpenSSH应用
[root@localhost ~]# rpm -qi openssh-server         //查看SSH软件包                                             
Name        : openssh-server               Relocations: (not relocatable)                       
Version     : 4.3p2                             Vendor: Red Hat, Inc.                           
Release     : 24.el5                        Build Date: 2007年07月13日 星期五 23时04分04秒      
Install Date: 2008年06月05日 星期四 18时57分52秒      Build Host: ls20-bc1-14.build.redhat.com  
Group       : System Environment/Daemons    Source RPM: openssh-4.3p2-24.el5.src.rpm            
Size        : 461393                           License: BSD                                     
Signature   : DSA/SHA1, 2007年07月19日 星期四 19时30分04秒, Key ID 5326810137017186             
Packager    : Red Hat, Inc. < [url]http://bugzilla.redhat.com/bugzilla[/url] >                               
URL         : [url]http://www.openssh.com/portable.html[/url]                                               
Summary     : The OpenSSH server daemon                                                         
Description :                                                                                   
OpenSSH 是 SSH(Secure SHell)的免费版本,它被用来                                              
在远程机器上登录并执行命令。                                                                    
该软件包包括安全 shell 守护进程(sshd)。sshd 守护进程                                          
允许 SSH 客户安全地连接到您的 SSH 服务器。您还需要                                              
安装 openssh 软件包。                                                                          
                                        
[root@localhost ~]# rpm -qa | grep ssh      //OpenSSH软件包的RPM程序包
openssh-4.3p2-24.el5                       
openssh-server-4.3p2-24.el5                
openssh-askpass-4.3p2-24.el5               
openssh-clients-4.3p2-24.el5                
                     
 [root@localhost ~]# service sshd restart                          
停止 sshd:                                                [确定] 
启动 sshd:                                                [确定] 
 
[root@localhost ~]# ssh -l front 172.16.0.10   或 ssh [email protected]   //ssh建立连接                     
                                                                           
The authenticity of host '172.16.0.10 (172.16.0.10)' can't be established. 
RSA key fingerprint is f7:48:8b:b1:c5:8b:9a:fe:ac:0e:4f:6d:58:63:ae:1c.    
Are you sure you want to continue connecting (yes/no)? y      //建立RSA共有密钥              
                                                                           
Please type 'yes' or 'no': yes                                      
                                                                           
Warning: Permanently added '172.16.0.10' (RSA) to the list of known hosts. 
[email protected]'s password:    ******                                          
[front@localhost ~]$                   //连接成功 !!!                                     
                                          
                                                                            

                                                                   
                                        
                                                                  

你可能感兴趣的:(职场,openssh,休闲)