ssh案例分析

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

422SSHcronFTPPineIMAPSSHKerberosSSHSSHSSH11.1SSHcronSSHcronSSHsshSSHSSHSSH42311.1.111.1.211.1.2.111.1.2.2ssh-keygensshkeygenpsshiIdentityFile[7.4.2]SSH424SSHSSHSSHSSHSSHExpect11.1.2.3ssh-agentUnix425SSHSSH1OpenSSHSSH_AUTH_SOCK[6.3.2.1]shell$ssh-agent|head-2~/agent-info$cat~/agent-infosetenvSSH_AUTH_SOCK/tmp/ssh-res/ssh-12327-agent;setenvSSH_AGENT_PID12328;Cshell$source~/agent-info$ssh-addbatch-keyNeedpassphraseforbatch-key(batchjobSSHkey).Enterpassphrase:**************#!/bin/csh#agent-infossh-agentsetagent=~/agent-infoif(-r$agent)thensource$agentelseechoCan'tfindorreadagentfile;exiting.exit1endif#SSHssh-q-o'BatchModeyes'user@remote-servermy-job-command!uiduidrootsubatch_accountssh-agentuiduid426UnixSolaris700SSH11.1.3uiduidSSHrootrootuidsshdSSH[3.4.2.3]HH11.1.4KerberosKerberos-5[11.4]SSHKerberoskinitr427TGTTicket-Granting-TicketkinitRTGTSSHKerberosKerberosKerberos-511.1.511.1.5.1rootroot11.1.5.2cron11.1.5.3428[8.2]commandfromno-port-forwardingno-X11-forwardingno-agent-forwardingno-ptyshellshellsshdshellUnixrestrictedshellrestrictedshellrshBerkeleyrshellrsh11.1.5.4sshSSHssh-q-o'BatchModeyes'qSSHSSHSSH[7.4.15]BatchModeSSHttySSH[7.4.5.4]11.1.6SSH429ssh-add11.2FTPSSHFTPFTP1FTPSSHFTPSSHnetworkaddresstranslationNATNATFTPSSHSSHFTP1FTPFTPKerberosFTPInternetFTP430VanDykeSecureFX(SunOS5.7)ready.---SYST215UNIXType:L8Version:SUNOSRemotesystemtypeisUNIX.Usingbinarymodetotransferfiles.ftpuserres---USERres331Passwordrequiredforres.Password:---PASSXXXX230Userresloggedin.ftpcdrep---CWDrep250CWDcommandsuccessful.ftpcdutopia---CWDutopia550utopia:Nosuchfileordirectory.ftpquit---QUIT221Goodbye.21[9.2]SSHFTP20ftp-dataTCPFTPFTPIPSSHNATFTPFTPpassivemodeFTP4322FTPncftpncftp=7x256+209PASV20483=80x256+320FTPFTPFTPIP10.1.2.17FTPIP10.1.2.3227(10,1,2,17,80,3)2111-1FTP/11.2.2FTPTCPSSHFTPSSHSSH11-2clientserverFTPFTPclient2433SSHSSH2001(10,1,2,17,80,27)SSH2120507FTPFTPssh-L2001:S:21SS10.1.2.1711-2client%ssh-L2001:server:21serverclient%ftplocalhost2001Connectedtolocalhost220serverFTPserver(SunOS5.7)ready.Password:230Userresloggedin.ftppassivePassivemodeon.ftpls...serverlocalhostclient11.2.2.1serverlocalhostL2001:localhost:21localhost[9.2.8]434client%ftplocalhost2001Connectedtoclient220clientFTPserver(SunOS5.7)ready.331Passwordrequiredforres.Password:230Userresloggedin.ftpls200PORTcommandsuccessful.425Can'tbuilddataconnection:Cannotassignrequestedaddress.ftpFTPlsLinuxstrace3so_socket(2,2,0,,1)=5bind(5,0x0002D614,16,3)=0AF_INETname=127.0.0.1port=20connect(5,0x0002D5F4,16,1)Err#126EADDRNOTAVAILAF_INETname=192.168.10.1port=2845write(1,425Can'tbu..,67)=67FTPTCP127.0.0.1ftp-dataTCPaddressnotavailableEADDRNOTAVAILFTPSSHFTPsshdftpdserverIPFTPftppassivePassivemodeon.3Solaris2SunOS5trussSolarisstraceSolaris1SunOS4traceBSDktrace435ftpls227EnteringPassiveMode(127,0,0,1,128,133)ftp:connect:Connectionrefusedftpserverclientclientclientsocket127.0.0.132901clientclientclient32901server11.2.2.2clientFTPNATFTP/SSH$ftp-dlocalhost2001Connectedtolocalhost.220serverFTPserver(SunOS5.7)ready.---USERres331Passwordrequiredforres.Password:---PASSXXXX230Userresloggedin.ftpls---PORT127,0,0,1,11,50200PORTcommandsuccessful.---LIST425Can'tbuilddataconnection:Connectionrefused.ftplocalhostclientclientserverserverserverclientFTP/NATSSHGatewayPostsIP436client%ssh-g-L2001:server:21serverlocalhostclientclient%ftpclient2001SSHclientFTPg[9.2.1.1]/NATUnixFTPFTPPORTillegalPORTcommand11.2.2.3PASVFTPSSHTCPftppassivePassivemodeon.ftplsconnectingto192.168.10.1:6670Connectedto192.168.10.1port6670425PossiblePASVporttheft,cannotopendataconnection.!RetrieveoffolderlistingfailedFTPWashingtonUniversitywu-ftpd:C:pPASVlocalhost:qlocalhost:q=C:p;FTPC192.168.10.111-3PASVFTPFTPFTPwu-ftpdFIGHT_PASV_PORT_RACEconfigure--disable-pasvipwu-ftpdIPpasv-allowport-allowftpaccess5wu-ftpd11.2.3FTPFTP11-4438lsgetputTCPFTP4connectionrefusedICMPTCPRSTSSHPORT219,243,169,50,80,5320533219.243.169.50:2053321FTPFTP219.243.169.5011-4FTPFTPFTPpassivePASV:commandnotunderstoodPASVFTP4transparentproxystatefulpacketfilterFTPFTPFTPPORTFTPPORTftpftp-dataNATFTP/NAT439SSH$ftplasciate.ogni.speranza.orgConnectedtolasciate.ogni.speranza.org220ProFTPD1.2.0pre6Server(LasciateFTPServer)[lasciate.ogni.speranza.org]331Passwordrequiredforslade.Password:230Usersladeloggedin.RemotesystemtypeisUNIX.Usingbinarymodetotransferfiles.ftpls200PORTcommandsuccessful.[]425Can'tbuilddataconnection:ConnectiontimedoutftppassivePassivemodeon.ftpls227EnteringPassiveMode(10,25,15,1,12,65)150OpeningASCIImodedataconnectionforfilelistdrwxr-x--x21sladeweb2048May823:2

1 / 68
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功