[問題] ssh 無法連線

看板Linux作者 (阿朱哥)時間9年前 (2014/11/22 17:07), 9年前編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
我有serverA 和 1.1.1.1 serverB 兩台主機,兩台都是用固定IP、假設是 1.1.1.2 系統都是 centos 5.3 版 今天我拿 centos 6.5 全新安裝在一台電腦C上 如果安裝選項是 desktop 繁中 desktop minial 繁中 desktop 英文 用 ssh 就會無法連線到 serverA , 但是都可以連線到 serverB 在 serverA 上抓封包是有抓到、但是感覺好像一收到就直接 drop 的感覺 如果用同一片光碟、但是改用我自己設定的 kickstart 安裝的話 就沒有連線問題,但是我的KS設定裡面是沒有GUI介面的 所以不能連線有可能是哪方面的問題嗎? serverA的防火牆、selinux和iptables全部都關還是沒有作用 電腦C同個區域網路的電腦全部都沒有不能連線的問題 或是有辦法用我自己設定的KS安裝完以後,再用yum把GUI介面安裝上去嗎? 下面是另外一台我用KS安裝完後的 anaconda-ks.cfg 檔內容 # Kickstart file automatically generated by anaconda. #version=DEVEL install cdrom lang en_US.UTF-8 keyboard us network --onboot yes --device eth0 --bootproto static --ip 192.168.168.1 --netmask 255.255.255.0 --noipv6 network --onboot no --device eth1 --bootproto dhcp --noipv6 rootpw --iscrypted $6$Ek1/z$PMOkBH9mEolvsnkins9QUuaxRD1vkQY85zaYJX/kQVW1 # Reboot after installation reboot --eject firewall --disabled authconfig --enableshadow --passalgo=sha512 selinux --disabled timezone --utc Asia/Taipei bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb rhgb quiet quiet" # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work #clearpart --all #part /boot --fstype=ext4 --size=100 #part swap --size=8192 #part / --fstype=ext4 --grow --size=200 repo --name="CentOS" --baseurl=cdrom:sr0 --cost=100 %packages @Base @Core @base @compat-libraries @console-internet @core @debugging @development @dial-up @hardware-monitoring @java-platform @network-file-system-client @network-tools @nfs-file-server @performance @perl-runtime @security-tools @server-platform @server-platform-devel @server-policy @system-admin-tools @system-management @system-management-snmp @workstation-policy device-mapper-persistent-data jpackage-utils nmap p11-kit-trust pax perl-DBD-SQLite sgpio systemtap-client %end %post #!/bin/sh mkdir -p /root/.ssh chmod 700 /root/.ssh chown root.root /root/.ssh echo "ssh-rsa KDprDPY/9ywegQ== root@server.com" >> /root/.ssh/authorized_keys chmod 644 /root/.ssh/authorized_keys chown root.root /root/.ssh/authorized_keys echo "GATEWAY=192.168.168.1" >> /etc/sysconfig/network echo "nameserver 168.95.1.1" >> /etc/resolv.conf echo "nameserver 168.95.192.1" >> /etc/resolv.conf eject %end -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.33.6.214 ※ 文章網址: http://www.ptt.cc/bbs/Linux/M.1416647239.A.BD7.html

11/22 17:09, , 1F
ssh -vv 看debug訊息
11/22 17:09, 1F
我只用過 ssh -v 看、只會出現下面這幾行 -vv 要星期一才能看了 [root@SRVA ~]# ssh -v 1.1.1.1 OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Connecting to 1.1.1.1 [1.1.1.1] port 22. ※ 編輯: zhucc (114.33.6.214), 11/22/2014 17:24:41
文章代碼(AID): #1KS597lN (Linux)