ildruido99 Inviato 17 Novembre 2012 Segnala Condividi Inviato 17 Novembre 2012 ciao a tutti, sto cercando di connettere il mio mac di casa (Lion) col mac dell'ufficio (SL) con ssh. 1) ho abilitato su entrambi i computer il login remoto 2) configurato su entrambi il file ssh_config come segue: # $OpenBSD: ssh_config,v 1.26 2010/01/11 01:39:46 dtucker 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 some commonly used options. For a comprehensive # list of available options, their meanings and defaults, please see the # ssh_config(5) man page. Host * SendEnv LANG LC_* # ForwardAgent no ForwardX11 yes # RhostsRSAAuthentication no # RSAAuthentication yes # PasswordAuthentication yes # HostbasedAuthentication no GSSAPIAuthentication yes GSSAPIDelegateCredentials yes # GSSAPIKeyExchange no # GSSAPITrustDNS 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-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc # MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160 # EscapeChar ~ # Tunnel no # TunnelDevice any:any # PermitLocalCommand no # VisualHostKey no # ProxyCommand ssh -q -W %h:%p gateway.example.com sul mac di casa e # $OpenBSD: ssh_config,v 1.25 2009/02/17 01:28:32 djm 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 some commonly used options. For a comprehensive # list of available options, their meanings and defaults, please see the # ssh_config(5) man page. Host * SendEnv LANG LC_* # ForwardAgent no ForwardX11 yes # RhostsRSAAuthentication no # RSAAuthentication yes # PasswordAuthentication yes # HostbasedAuthentication no GSSAPIAuthentication yes GSSAPIDelegateCredentials yes # GSSAPIKeyExchange no # GSSAPITrustDNS 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-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc # MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160 # EscapeChar ~ # Tunnel no # TunnelDevice any:any # PermitLocalCommand no # VisualHostKey no su quello dell'ufficio. se provo a connettermi usando l'IP pubblico con ssh nomeutente@IPpubblico mi da errore da entrambe le parti. dice che "connect to host x.xxx.xx.242 port 22: Operation timed out" Non so proprio come proseguire, potete darmi un suggerimento? NB riesco a operare su entrambe le macchine contemporaneamente perche sono colletagi tramite TeamWieaver.. Link al commento Condividi su altri siti Altre opzioni di condivisione...
trooperx17 Inviato 11 Dicembre 2012 Segnala Condividi Inviato 11 Dicembre 2012 beh con l'IP pubblico ti colleghi al router che ha assegnato l'IP pubblico dall'ISP, sul router devi fare un forward della porta 22 sulla porta 22 del pc, in reltà potresti forwardare qualsiasi porta del router sulla 22 del mac la connessione va in timeout perchè il router non parla sulla porta 22.. non avendo nessun servizio in ascolto.. Linux Junior Professional LPIC-1  ACMT, ACTC - in progress Link al commento Condividi su altri siti Altre opzioni di condivisione...
Messaggi raccomandati
Archiviato
Questa discussione è archiviata e chiusa a future risposte.