icilallenzhang 发表于 2008-04-17 16:12

How to install ssh on Solaris 8 or below


v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}

Normal
0

7.8 磅
0
2

false
false
false

   
   
   
   
   
   
   
   
   
   
   
   

MicrosoftInternetExplorer4



st1\:*{behavior:url(#ieooui) }
/* Style Definitions */
table.MsoNormalTable
        {mso-style-name:普通表格;
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}
table.MsoTableGrid
        {mso-style-name:网格型;
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        border:solid windowtext 1.0pt;
        mso-border-alt:solid windowtext .5pt;
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-border-insideh:.5pt solid windowtext;
        mso-border-insidev:.5pt solid windowtext;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";
        mso-ansi-language:#0400;
        mso-fareast-language:#0400;
        mso-bidi-language:#0400;}

1         
Introduction
This document describes how to replace traditional
remote access service rsh by ssh
on various platforms.

2         
What is OpenSSH and why should
it be used?
OpenSSH is a free version of the SSH suite of
network connectivity tools that increasing numbers of people on the Internet
are coming to rely on. telnet, rlogin, ftp, and
3         
How openssh replace the traditional remote access services
The following tasks are discussed:

·      
How to use ssh to replace telnet, rsh and rlogin.
·      
How to use scp to replace rcp.
·      
How to use sftp to replace ftp for file transfer.
·      
How to access server by ssh on Windows.
·      
How to transfer file by sftp on Windows.

3.1                  
How to use ssh to replace telnet, rlogin and rsh
To
access a server from on *nix machine, you can use ssh directly.The usage is:

ssh hostname

To
access the server as special account, you can also use:

ssh user@hostname

or

ssh hostname -l user

For
example:

# ssh allenzhang@node2
allenzhang@node2's password:
Last login: Tue May 23 01:05:08 2006 from node1
$

# ssh node2 -l allenzhang
allenzhang@node2's password:
$


3.2                  
How to use scp to replace rcp
The usage of scp is much like rcp, and it can make more perfect. The -p option and -r option play the same roles as rcp as scp.You can set the ownership of
remote server.

   -p      Preserves modification
times, access times, and modes from the original file.
   -r      Recursively copy entire
directories.

To use scp:

scp source_file hostname:destination folder/file_name

For
example:

# scp ic_env.pbd allenzhang@node2:/home/allenzhang
allenzhang@node2's password:
ic_env.pbd                                                         
100%    0   0.0KB/s
00:00
# ls -l ic_env.pbd
-rw-r--r--1
allenzhang allenzhang 0 May 23 01:09 ic_env.pbd
    There is
another useful option in scp to set the used bandwidth
   -l limit Limits the used bandwidth, specified in Kbit/s.


3.3                  
How to use sftp to replace ftp for file transfer
sftp is much like ftp.Commands
of ftp are supported in sftp. You need not to set transfer mode to binary
or ACSII in sftp.
In sftp or scp all transfers are all in binary.

For
example:

# sftp allenzhang@node2
Connecting to node2...
allenzhang@node2's password:
sftp> help
Available commands:
cd path                     Change remote directory
to 'path'
lcd path                      Change local directory to
'path'
chgrp grp path                Change group of file 'path' to
'grp'
chmod mode path               Change permissions of file
'path' to 'mode'
chown own path                Change owner of file 'path' to
'own'
help                        Display this help
text
get remote-path Download file
lls ]       Display local directory listing
ln oldpath newpath            Symlink remote file
lmkdir path                   Create local directory
lpwd                        Print local working
directory
ls                      Display remote directory
listing
lumask umask                  Set local umask to 'umask'
mkdir path                  Create remote directory
progress                      Toggle display of
progress meter
put local-path Upload file
pwd                           Display remote
working directory
exit                        Quit sftp
quit                        Quit sftp
rename oldpath newpath      Rename remote file
rmdir path                  Remove remote directory
rm path                     Delete remote file
symlink oldpath newpath       Symlink remote file
version                     Show SFTP version
!command                      Execute 'command' in
local shell
!                           Escape to local
shell
?                           Synonym for help


3.4                  
How to access server by ssh on Windows
There
are lots of free ssh client software on Windows platform. There are two
recommendations: putty and SSH TectiaTM
Client.

3.4.1                     
How to use putty
putty
is free ssh client, it is green software as well. You can download it to your
PC and use it directly. You can save the server configuration in putty and you
need not input the IP address of server everytime.After double-clicking the putty executable
icon, it should show as below.



















file:///C:/DOCUME%7E1/ALLENZ%7E1/LOCALS%7E1/Temp/msohtml1/01/clip_image002.jpg

Double click the saved record, unix_server in
this case, then you will connect to server directly.


file:///C:/DOCUME%7E1/ALLENZ%7E1/LOCALS%7E1/Temp/msohtml1/01/clip_image004.jpg

You
can get download the pscp.exe and psftp.exe to enable scp and sftp
functions on your PC. you can save your putty tools to a special folder then
set it as part of PATH in your environment.
Then you can use them everywhere on your pc.


set PATH=C:\path\to\putty\directory;%PATH%

D:\software>pscp.exe
PuTTY Secure Copy client
Development snapshot 2006-05-22:r6714
Usage: pscp
host:source target
       pscp source
host:target
       pscp -ls host:filespec
Options:
-V      
print version information and exit
-pgpfp   
print PGP key fingerprints and exit
-p      
preserve file attributes
-q      
quiet, don't show statistics
-r      
copy directories recursively
-v      
show verbose messages
-load sessnameLoad settings from saved session
-P port
connect to specified port
-l user
connect with specified username
-pw passw login with specified password
-1
-2   force use of particular SSH
protocol version
-4 -6   
force use of IPv4 or IPv6
-C      
enable compression
-i key   
private key file for authentication
-noagent
disable use of Pageant
-agent   
enable use of Pageant
-batch   
disable all interactive prompts
-unsafe
allow server-side wildcards (DANGEROUS)
-sftp   
force use of SFTP protocol
-scp   
force use of SCP protocol
D:\software>psftp.exe
psftp: no hostname
specified; use "open host.name" to connect
psftp> help
!      run a local command
bye    finish your SFTP session
cd   change your remote working directory
chmodchange file permissions and modes
closefinish your SFTP session but do not quit
PSFTP
del    delete files on the remote server
dir    list remote files
exit   finish your SFTP session
get    download a file from the server to your
local machine
help   give help
lcd    change local working directory
lpwd   print local working directory
ls   list remote files
mget   download multiple files at once
mkdircreate directories on the remote server
mput   upload multiple files at once
mv   move or rename file(s) on the remote
server
open   connect to a host
put    upload a file from your local machine to
the server
pwd    print your remote working directory
quit   finish your SFTP session
regetcontinue downloading files
ren    move or rename file(s) on the remote server
reputcontinue uploading files
rm   delete files on the remote server
rmdirremove directories on the remote server


You can get the latest putty from the URL
below:

http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

3.4.2                     
How to use SSH TectiaTM
Client
SSH TectiaTM Client is a ssh client that support both CLI and GUI for users, we can use ssh, scp and sftp after installation. We can download the NON-COMMERCIAL version on the following URL:

http://www.ssh.com/support/downloads/secureshellwks/non-commercial.html

After installing SSH TectiaTM
Client, when CLI and GUI ssh client are both available. The path of ssh secure shell will be set to PATH of system automatically.

Z:\>echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\SSH Communications Security\SSH Secure Shell




本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/52953/showart_546308.html
页: [1]
查看完整版本: How to install ssh on Solaris 8 or below