לוגו אתר Fresh          
 
 
  אפשרות תפריט  ראשי     אפשרות תפריט  צ'אט     אפשרות תפריט  מבזקים     אפשרות תפריט  צור קשר     חץ שמאלה חץ ימינה  

לך אחורה   לובי הפורומים > מחשבים > מערכות הפעלה
שמור לעצמך קישור לדף זה באתרי שמירת קישורים חברתיים
תגובה
 
כלי אשכול חפש באשכול זה



  #1  
ישן 21-04-2009, 22:10
צלמית המשתמש של The IceMan
  The IceMan מנהל The IceMan אינו מחובר  
\dev\null
 
חבר מתאריך: 08.11.02
הודעות: 11,379
open failed: administratively prohibited: open failed

אני משתמש ב-munin כדי לנתר את הרשת,
על כל מחשב מותקנת munin-node שהיא מעין תוכנת שרת שמאפשרת למחשב שלי להתחבר אליה ולשלוף את המידע על המחשב דרך telnet

קוד:
# telnet server.co.il 4949 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. # munin node at server.co.il fetch df _dev_sda3.value 29 _dev_sda1.value 7 none_dev_shm.value 0 _dev_sda6.value 13 _dev_sda2.value 48 . quit Connection closed by foreign host.


ככה אני יכול לבדוק אם השירות תקין לוקלית על המחשב.

עכשיו בגלל נושא האבטחה לא מאפשרים גישה לכל פורט ברשת, אז אני מתעל את המידע על ssh

קוד:
$ssh -L 5070:localhost:4949 -f -N server.co.il $ telnet localhost 5050 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. # munin node at server.co.il fetch df _dev_sda4.value 43 _dev_sda1.value 16 tmpfs_dev_shm.value 0 _dev_sda2.value 13 . quit Connection closed by foreign host.


ככה זה כשזה עובד.

עכשיו על שרת אחת משום מה אני מקבל את השגיאה הנ"ל "open failed: administratively prohibited: open failed"
חיפוש בגוגל העלה כמה וכמה פוסטים עם הבעיה, אך לא הרבה תשובות

נסתי להוסיף ידנית את האופציה AllowTCPForwarding אז לא שינה דבר
נראה שהבעיה היא דווקא ב-openssh ולא ב-munin, משהו יכול לשפוך אור על הנושא ?
תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
  #3  
ישן 21-04-2009, 23:01
צלמית המשתמש של The IceMan
  The IceMan מנהל The IceMan אינו מחובר  
\dev\null
 
חבר מתאריך: 08.11.02
הודעות: 11,379
בתגובה להודעה מספר 2 שנכתבה על ידי שימי שמתחילה ב "תעלה עותק של sshd_config..."

הכל נראה לי על DEFAULT
קוד:
# cat ssh_config # $OpenBSD: ssh_config,v 1.19 2003/08/13 08:46:31 markus Exp $ # This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This file provides defaults for # users, and the values can be changed in per-user configuration files # or on the command line. # Configuration data is parsed as follows: # 1. command line options # 2. user-specific file # 3. system-wide file # Any configuration value is only changed the first time it is set. # Thus, host-specific definitions should be at the beginning of the # configuration file, and defaults at the end. # Site-wide defaults for various options # Host * # ForwardAgent no # ForwardX11 no # RhostsRSAAuthentication no # RSAAuthentication yes # PasswordAuthentication yes # HostbasedAuthentication no # BatchMode no # CheckHostIP yes # AddressFamily any # ConnectTimeout 0 # StrictHostKeyChecking ask # IdentityFile ~/.ssh/identity # IdentityFile ~/.ssh/id_rsa # IdentityFile ~/.ssh/id_dsa # Port 22 # Protocol 2,1 # Cipher 3des # Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc # EscapeChar ~ Host * GSSAPIAuthentication yes # If this option is set to yes then the remote X11 clients will have full access # to the local X11 display. As virtually no X11 client supports the untrusted # mode correctly we set this to yes. ForwardX11Trusted yes # AllowTCPForwarding yes
תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
  #5  
ישן 22-04-2009, 00:22
צלמית המשתמש של The IceMan
  The IceMan מנהל The IceMan אינו מחובר  
\dev\null
 
חבר מתאריך: 08.11.02
הודעות: 11,379
בתגובה להודעה מספר 4 שנכתבה על ידי שימי שמתחילה ב "שים לב איזה קובץ אני ביקשתי,..."

קוד PHP:
 # cat /etc/ssh/sshd_config
#       $OpenBSD: sshd_config,v 1.69 2004/05/23 23:59:53 dtucker Exp $

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.                        

# This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where         
# possible, but leave them commented.  Uncommented options change a    
# default value.                                                       

Port 22
Protocol 2
ListenAddress 0.0.0.0
#ListenAddress ::    

# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key  
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key

# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h                          
#ServerKeyBits 768                                   
                                                                                                                                                
# Logging                                                                                                                                       
#obsoletes QuietMode and FascistLogging                                                                                                         
#SyslogFacility AUTH                                                                                                                            
SyslogFacility AUTHPRIV                                                                                                                         
#LogLevel INFO                                                                                                                                  

# Authentication:

#LoginGraceTime 2m
PermitRootLogin no
#StrictModes yes  
#MaxAuthTries 6   

#RSAAuthentication yes
#PubkeyAuthentication yes
#AuthorizedKeysFile     .ssh/authorized_keys

# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no                                                
# similar for protocol version 2                                           
#HostbasedAuthentication no                                                
# Change to yes if you don't trust ~/.ssh/known_hosts for                  
# RhostsRSAAuthentication and HostbasedAuthentication                      
#IgnoreUserKnownHosts no                                                   
# Don't read the user's ~/.rhosts and ~/.shosts files                      
#IgnoreRhosts yes                                                          

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes                                   
#PermitEmptyPasswords no                                      
PasswordAuthentication yes                                    

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes     
ChallengeResponseAuthentication no       

# Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no   

# GSSAPI options
#GSSAPIAuthentication no
GSSAPIAuthentication yes
#GSSAPICleanupCredentials yes
GSSAPICleanupCredentials yes

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication mechanism.
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# "PermitRootLogin without-password". If you just want the PAM account and
# session checks to run without PAM authentication, then enable this but set
# ChallengeResponseAuthentication=no
#UsePAM no
UsePAM yes

#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression yes
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#ShowPatchLevel no

# no default banner path
#Banner /some/path

# override default of no subsystems
Subsystem       sftp    /usr/libexec/openssh/sftp-server 
תגובה ללא ציטוט תגובה עם ציטוט חזרה לפורום
תגובה

כלי אשכול חפש באשכול זה
חפש באשכול זה:

חיפוש מתקדם
מצבי תצוגה דרג אשכול זה
דרג אשכול זה:

מזער את תיבת המידע אפשרויות משלוח הודעות
אתה לא יכול לפתוח אשכולות חדשים
אתה לא יכול להגיב לאשכולות
אתה לא יכול לצרף קבצים
אתה לא יכול לערוך את ההודעות שלך

קוד vB פעיל
קוד [IMG] פעיל
קוד HTML כבוי
מעבר לפורום



כל הזמנים המוצגים בדף זה הם לפי איזור זמן GMT +2. השעה כעת היא 05:40

הדף נוצר ב 0.05 שניות עם 12 שאילתות

הפורום מבוסס על vBulletin, גירסא 3.0.6
כל הזכויות לתוכנת הפורומים שמורות © 2025 - 2000 לחברת Jelsoft Enterprises.
כל הזכויות שמורות ל Fresh.co.il ©

צור קשר | תקנון האתר