SSHÁ¬½ÓÔ¶³ÌLinux·þÎñÆ÷(C#)
GranadosÊÇÒ»¸ö»ùÓÚ.NETµÄSSH¿Í»§¶Ë¿â¡£ËüÓÐÒÔÏÂÌØµã£º
1.GranadosÊÇÒ»¸öC#µÄ¿ªÔ´ÏîÄ¿¡£Ô´ÂëµØÖ·£ºhttp://www.routrek.co.jp/support/download/varaterm/granados200.tar.gz
2.ͬʱ֧³ÖSSH1ºÍSSH2¡£
3.GranadosʵÏÖÁËAES, Blowfish, TripleDES, RSA, DSAµÈ¼ÓÃÜÑéÖ¤Ëã·¨¡£
4.ʵÏÖTCPÐÒéÁ¬½Ó¡£
ÈçºÎʹÓÃGranados¿â
¿ÉϧµÄÊÇGranadosµÄÎĵµ¼¸ºõûÓУ¡ËùÒÔÖ»ÓдÓËüµÄÔ´ÂëÕÒµ½ËüµÄ²âÊÔ´úÂëÀ´¿´¡£×ܽᲽÖèΪ£º
1.¹¤³ÌÖÐÌí¼ÓRoutrek.granados.dll(ÏÂÔØµÄ°üÀïÓÐ)µÄÒýÓá£
2.Ìí¼ÓReaderÀ࣬ʵÏÖISSHConnectionEventReceiverºÍISSHChannelEventReceiver½Ó¿Ú¡£Ê×ÏÈÒýÓÃÃüÃû¿Õ¼ä£º
using System.Threading;
using System.Diagnostics;
using System.Net;
using System.Net.Sockets;
using Routrek.Crypto;
using Routrek.SSHC;
using Routrek.SSHCV1;
using Routrek.SSHCV2;
using Routrek.Toolkit;
using Routrek.PKI;
ReaderÀàʵÏÖÈçÏ£º
class Reader : ISSHConnectionEventReceiver, ISSHChannelEventReceiver
{
public SSHConnection _conn;
public bool _ready;
public void OnData(byte[] data, int offset, int length)
{
System.Console.Write(Encoding.ASCII.GetString(data, offset, length));
}
public void OnDebugMessage(bool always_display, byte[] data)
{
Debug.WriteLine("DEBUG: " + Encoding.ASCII.GetString(data));
}
public void OnIgnoreMessage(byte
Ïà¹ØÎĵµ£º
±¾ÈËǰ¶Ëʱ¼äдÁ˸öHTMLÎļþ·ÖÎöÆ÷£¬windowsƽ̨ÉϵÄVC6.0£¬Ê¹Óñê×¼C++¡£×òÌì½Óµ½Ö¸ÁӦҪÇóÒª·¢²¼Ò»¸öLinux°æ±¾µÄ£¬Ã£È»À²£¬LinuxÏÂÃæµÄhello world¶¼Ã»ÓÐÍæ¹ý£¬¶ÔlinuxϵÄC++³ÌÐò½ö½öÏÞÓÚÌýËûÃÇÉñ´µ¹ýµÄGCC, G++, MAKEFILEʲôµÄ£¬ÆäËûÒ»¸Å²»Öª¡£Õâ¾Í×¢¶¨ÒÆÖ²¹ý³Ì±ØÈ»full of frustrating.
ÔçÉÏÔÚÈçͬä¸ä¸ÏªÁ÷ ......
ÏÂÃæ¼òµ¥ËµÏÂÎÒ²Ù×÷µÄ¹ý³Ì£¬Ï£ÍûÄܸøÏñÎÒÒ»ÑùÈëÃŵÄÈËÒ»µã°ïÖú¡£
1£ºÏµÍ³°²×°£¬ÕâÀï¾Í²»ËµÁË£¬ÍøÉÏÓкܶ࣬ҲºÜ¼òµ¥¡£Ë³±ã˵Ï£¬ÎÒÓõÄÊÇredhat 9£»
2£ºÔÚͼÐνçÃæÏÂÏÂÔØapache °²×°°ü£¬ÎÒϵÄÊÇ httpd-2.2.9.tar.gz Ô´Âë°²×°°ü£¬µØÖ·ÊÇhttp://httpd.apache.org/download.cgi
3£º½«ÏÂÔØÎļþ±£´æµ½/home/redhat/ ......
¸úÎÒÒ»Æðд Makefile
³Âð© (CSDN)
¸ÅÊö
——
ʲ
ôÊÇmakefile£¿»òÐíºÜ¶àWinodwsµÄ³ÌÐòÔ±¶¼²»ÖªµÀÕâ¸ö¶«Î÷£¬ÒòΪÄÇЩWindowsµÄIDE¶¼ÎªÄã×öÁËÕâ¸ö¹¤×÷£¬µ«ÎÒ¾õµÃÒª×÷Ò»¸öºÃµÄºÍ
professionalµÄ³ÌÐòÔ±£¬makefile»¹ÊÇÒª¶®¡£Õâ¾ÍºÃÏñÏÖÔÚÓÐÕâô¶àµÄHTMLµÄ±à¼Æ÷£¬µ«Èç¹ûÄãÏë³ÉΪһ¸öרҵÈËÊ¿£¬Ä㻹ÊÇÒªÁ˽ ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
ÈËÃǵÄÑÛ¾¦¶¼¶¢×¡¼ÆËã»ú×ÀÃæ¡£µ«ÊÇ£¬Ò»°ãÈ˲¢²»ÖªµÀ
Linux
×ÀÃæÕý´¦ÔÚѸËٱ仯֮ÖС£Óкθù¾Ý£¿
×Ô
11
ÔÂ
10
ÈÕÆð£¬ÎÒÍ£Ó ......