PUTTY在Linux下的安装

来源:互联网 发布:json如何取数组 编辑:程序博客网 时间:2024/05/19 13:08

http://blog.163.com/zhaoweibiao87@126/blog/static/1347994812013084636341/


尽管Linux下已经自带了telnet.不过telnet相对来说不是很安全,于是PUTTY横空出世了.PUTTY是一款自由的telnet/SSH客户端,而且是开放源码的.你可以去它的官网看看:http://www.putty.nl/  呵呵,看了一下好像只有WINDOWS和UNIX的二进制包和源码包,好像没有LINUX下的源码包.不过LINUX是类UNIX的操作系统,用UNIX下的源码包在LINUX下编译应该是能够编译通过的.

     好了,在下面这个网址下载UNIX下的源码包putty-0.59.tar.gz.
     http://www.putty.nl/download.html
     好了,现在开始解压源码包:
[root@SunLife Desktop]# ls
putty-0.59.tar.gz  QQ.desktop  temp  temp.txt
[root@SunLife Desktop]# mkdir /home/zhc/putty
[root@SunLife Desktop]# mkdir /home/zhc/putty/source
[root@SunLife Desktop]# mv putty-0.59.tar.gz  /home/zhc/putty/source/
[root@SunLife Desktop]# cd /home/zhc/putty/
[root@SunLife putty]# ls
source
[root@SunLife putty]# tar -zxvf source/putty-0.59.tar.gz
.......................
[root@SunLife putty]# ls
putty-0.59  source
[root@SunLife putty]# cd putty-0.59/
[root@SunLife putty-0.59]# ls
be_all.c      config.c  int64.h     manifest     nocproxy.c  psftp.c     rlogin.c    ssh.c       sshprime.c  storage.h   tree234.h
be_all_s.c    contrib   LATEST.VER  minibidi.c   noprint.c   psftp.h     sercfg.c    sshcrc.c    sshpubk.c   telnet.c   unix
be_none.c     cproxy.c  ldisc.c     misc.c       notiming.c  putty.h     settings.c  sshcrcda.c  sshrand.c   terminal.c  version.c
be_nos_s.c    dialog.c  ldisc.h     misc.h       pinger.c    puttymem.h  sftp.c      sshdes.c    sshrsa.c    terminal.h  version.def
be_nossh.c    dialog.h  ldiscucs.c  mkauto.sh    portfwd.c   puttyps.h   sftp.h      sshdh.c     sshrsag.c   testback.c  wcwidth.c
charset       doc       LICENCE     mkfiles.pl   pproxy.c    raw.c       sshaes.c    sshdss.c    sshsh256.c  testdata    wildcard.c
CHECKLST.txt  icons     logging.c   mksrcarc.sh  proxy.c     README      ssharcf.c   sshdssg.c   sshsh512.c  time.c      windows
cmdgen.c      import.c  mac         mkunxarc.sh  proxy.h     Recipe      sshblowf.c  ssh.h       sshsha.c    timing.c    x11fwd.c
cmdline.c     int64.c   macosx      network.h    pscp.c      resource.h  sshbn.c     sshmd5.c    sshzlib.c   tree234.c
     接下来就是例行的配置,编译了:
[root@SunLife putty-0.59]# cd unix/     <-------------------(要先切换到UNIX目录.)
[root@SunLife unix]# ls                   
configure     gtkcols.h   Makefile.gtk  uxcfg.c      uxmisc.c   uxprint.c  uxputty.c  uxsignal.c  xkeysym.c   xpmputty.c
configure.ac  gtkdlg.c    Makefile.in   uxconfig.in  uxnet.c    uxproxy.c  uxsel.c    uxstore.c   xpmptcfg.c
gtkcfg.c      gtkwin.c    unix.h        uxcons.c     uxnoise.c  uxpterm.c  uxser.c    uxucs.c     xpmpterm.c
gtkcols.c     install-sh  uxagentc.c    uxgen.c      uxplink.c  uxpty.c    uxsftp.c   ux_x11.c    xpmpucfg.c
[root@SunLife unix]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for utmpx.h... yes
checking for sys/select.h... yes
checking for gtk-config... /usr/bin/gtk-config
checking for GTK - version >= 1.2.0... yes
checking for library containing socket... none required
checking for getaddrinfo... yes
checking for ptsname... yes
checking for setresuid... yes
checking for strsignal... yes
checking for updwtmpx... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating uxconfig.h
[root@SunLife unix]# ls
config.log     gtkcfg.c   gtkwin.c      Makefile.in  uxconfig.h   uxmisc.c   uxprint.c  uxputty.c  uxsignal.c  xkeysym.c   xpmputty.c
config.status  gtkcols.c  install-sh    unix.h       uxconfig.in  uxnet.c    uxproxy.c  uxsel.c    uxstore.c   xpmptcfg.c
configure      gtkcols.h  Makefile      uxagentc.c   uxcons.c     uxnoise.c  uxpterm.c  uxser.c    uxucs.c     xpmpterm.c
configure.ac   gtkdlg.c   Makefile.gtk  uxcfg.c      uxgen.c      uxplink.c  uxpty.c    uxsftp.c   ux_x11.c    xpmpucfg.c
[root@SunLife unix]#make
..................................................
[root@SunLife unix]# ls
be_all_s.o     gtkcfg.o    logging.o     pscp        sftp.o      sshprime.o  tree234.o    uxmisc.o   uxpty.o     uxucs.o     xpmpucfg.c
be_none.o      gtkcols.c   macenc.o      pscp.o      slookup.o   sshpubk.o   unix.h       uxnet.c    uxputty.c   ux_x11.c    xpmpucfg.o
be_nos_s.o     gtkcols.h   Makefile      psftp       sshaes.o    sshrand.o   utf8.o       uxnet.o    uxputty.o   ux_x11.o    xpmputty.c
cmdgen.o       gtkcols.o   Makefile.gtk  psftp.o     ssharcf.o   sshrsag.o   uxagentc.c   uxnoise.c  uxsel.c     version.o   xpmputty.o
cmdline.o      gtkdlg.c    Makefile.in   pterm       sshblowf.o  sshrsa.o    uxagentc.o   uxnoise.o  uxsel.o     wcwidth.o
config.log     gtkdlg.o    mimeenc.o     putty       sshbn.o     sshsh256.o  uxcfg.c      uxplink.c  uxser.c     wildcard.o
config.o       gtkwin.c    minibidi.o    puttygen    sshcrcda.o  sshsh512.o  uxcfg.o      uxplink.o  uxser.o     x11fwd.o
config.status  gtkwin.o    misc.o        puttytel    sshcrc.o    sshsha.o    uxconfig.h   uxprint.c  uxsftp.c    xenc.o
configure      import.o    nocproxy.o    raw.o       sshdes.o    sshzlib.o   uxconfig.in  uxprint.o  uxsftp.o    xkeysym.c
configure.ac   install-sh  notiming.o    rlogin.o    sshdh.o     telnet.o    uxcons.c     uxproxy.c  uxsignal.c  xkeysym.o
cproxy.o       int64.o     pinger.o      sbcsdat.o   sshdssg.o   terminal.o  uxcons.o     uxproxy.o  uxsignal.o  xpmptcfg.c
dialog.o       ldisc.o     plink         sbcs.o      sshdss.o    time.o      uxgen.c      uxpterm.c  uxstore.c   xpmptcfg.o
fromucs.o      ldiscucs.o  portfwd.o     sercfg.o    sshmd5.o    timing.o    uxgen.o      uxpterm.o  uxstore.o   xpmpterm.c
gtkcfg.c       localenc.o  proxy.o       settings.o  ssh.o       toucs.o     uxmisc.c     uxpty.c    uxucs.c     xpmpterm.o
     OK,编译完毕,上面是编译生成的目标文件.现在可以试试了.
[root@SunLife unix]#./putty
【转载】PUTTY在Linux下的安装 - 随缘 - 工作坊

       配置一下,就用127.0.0.1(是不是很无聊啊) 吧.看看下面这个截图:
【转载】PUTTY在Linux下的安装 - 随缘 - 工作坊

     呵呵,怎么样,还不错吧.你可能不想每次都这样启动PUTTY吧.那我们就为它添加一个符号链接吧:
[root@SunLife /]# cd /usr/local/bin/
[root@SunLife bin]# ln -s /home/zhc/putty/putty-0.59/unix/putty ./putty
[root@SunLife bin]# ls
arm-elf-addr2line  arm-elf-c++filt  arm-elf-gcc      arm-elf-objcopy   arm-elf-readelf  arm-elf-unprotoize  mencoder
arm-elf-ar         arm-elf-elf2flt  arm-elf-ld       arm-elf-objdump   arm-elf-size     elf2flt             mplayer
arm-elf-as         arm-elf-flthdr   arm-elf-ld.real  arm-elf-protoize  arm-elf-strings  flthdr              putty
arm-elf-c++        arm-elf-g++      arm-elf-nm       arm-elf-ranlib    arm-elf-strip    genromfs            qvfb
[root@SunLife bin]# putty
[root@SunLife bin]# cd /
        呵呵,你现在就可以在任何目录下输入putty就可以启动PUTTY了.
[root@SunLife /]# putty
       如果你还不满意,你可以在你的桌面为它添加快捷方式.方法如下:
       用鼠标右击桌面,在弹出的菜单里选"创建启动器",然后把弹出的对话框填完,确定即可.
0 0
原创粉丝点击