<![CDATA[Forum Ubuntu-fr.org / se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?id=378058 Sun, 14 Feb 2010 20:40:10 +0000 FluxBB <![CDATA[Réponse à : se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3279875#p3279875 manque d'humour ces jeunes wink

lol

]]>
Sun, 14 Feb 2010 20:40:10 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3279875#p3279875
<![CDATA[Réponse à : se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3279696#p3279696 francoisp31 a écrit :

timeout : trop long a obtenir le retour  il faut alors augmenter le limite du  timeout et/ou que chacun change de provider internet pour prendre une ligne plus rapide

Bien sûr que non ! Changer de FAI, et puis quoi encore roll

Un timeout ne se produit jamais dans des conditions normales. Dans le cas présent, la cause est assez simple : le paquet a été ignoré (drop) par un pare-feu. C'est peut-être celui de la *box cible ou du routeur cible (dans ce cas, il faudrait rediriger le port comme cela a été dit), ou c'est celui du PC cible lui-même. De plus, il faut veiller à ce que sshd tourne bien dessus, et qu'il tourne sur le port 22.

]]>
Sun, 14 Feb 2010 18:58:58 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3279696#p3279696
<![CDATA[Réponse à : se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3278790#p3278790 timeout : trop long a obtenir le retour  il faut alors augmenter le limite du  timeout et/ou que chacun change de provider internet pour prendre une ligne plus rapide

]]>
Sun, 14 Feb 2010 10:02:08 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3278790#p3278790
<![CDATA[Réponse à : se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3276707#p3276707 j'ai esséyé de me connecter sur une machine d'un ami qui vie dans un autre pays, sa met du temps apré sa me sors:
ssh: connect to host 41.97.191.75 port 22: Connection timed out
vous pouvez m'expliquer?

]]>
Sat, 13 Feb 2010 00:06:15 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3276707#p3276707
<![CDATA[Réponse à : se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3271253#p3271253 rwikus090 a écrit :

Bonjour
voila j'aimerai savoir si c'est possible de se connecter à une machine qui est aussi sous ubuntu a distance , par exemple sur la machine de mon ami qui est entrain de me parler sur msn.
merci
ps: on m'a dit que c'était possible avec une commande dans le terminal

des solutions il en existe plusieurs

ssh c'est le shell à distance donc un terminal

sshd doit tourné sur la machine QUI EST accédée avec les droits qui vont bien etc....et le port ouvert XXX sur la box qui va bien etc....

ssh -l user host -p PORT c'est coté client ((donc toi) qui le lance pour acceder à sa machine)


la configuration se fait dans /etc/ssh/ssh_config et /etc/ssh/sshd_config

bien sur toute machine peut etre client ET serveur à la fois ... c'est juste une histoire de droits à bien gerer après...



si tu préfére une connexion totalement graphique à distance il y a par exemple VNC.... de la meme manière vnc server d'un coté et vncviewer de l'autre  et bien sur pareil il faut le port ouvert et les droits qui vont bien...

c'est inutile mais tu peux même croiser les connexions
ouvrir un vncviewer sur la machine de ton pote et depuis là bas ouvrir un ssh sur ta machine à toi .... c'est 100% inutile mais ça marchera aussi ... smile

prends le temps de bien lire la doc c'est tout simple c'est juste un fichier texte à remplir et un service à démarrer... (pour ssh)

un exemple minimaliste peu configuré et pas très sécurisé donc juste le minimum vital :
ssh_config

# 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 *
   ForwardAgent no
   ForwardX11 no
   ForwardX11Trusted yes
   RhostsRSAAuthentication no
   RSAAuthentication yes
   PasswordAuthentication yes
   HostbasedAuthentication no
   GSSAPIAuthentication no
   GSSAPIDelegateCredentials no
   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
#   Cipher 3des
#   Ciphers aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc
#   MACs hmac-md5,hmac-sha1,umac-64@openssh.com,hmac-ripemd160
#   EscapeChar ~
#   Tunnel no
#   TunnelDevice any:any
#   PermitLocalCommand no
    SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no

sshd_config :

# Package generated configuration file
# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin no
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication no
#AuthorizedKeysFile	%h/.ssh/authorized_keys

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

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

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

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

UsePAM yes
]]>
Wed, 10 Feb 2010 17:25:00 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3271253#p3271253
<![CDATA[Réponse à : se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3270991#p3270991 c'est pour quel utilité?

]]>
Wed, 10 Feb 2010 15:53:07 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3270991#p3270991
<![CDATA[Réponse à : se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3270977#p3270977 c'est quoi ce sshd, et je dois l'installer moi ausi?

]]>
Wed, 10 Feb 2010 15:46:10 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3270977#p3270977
<![CDATA[Réponse à : se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3268626#p3268626 Il faut néanmoins que :
- sshd soit installé chez ton copain
- Que sur sa box, le port 22 (par défaut, il peut préciser un autre, voir la doc signalée par sputnick) soit redirigé sur son PC.

]]>
Tue, 09 Feb 2010 14:16:24 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3268626#p3268626
<![CDATA[Réponse à : se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3267802#p3267802 j'ai esséyé:
ssh user@ip
on me sors tjr connexion refused
pour l'user j'ai mis le nom d'utilisateur de la session du pc qui est a distance,c'est juste?

]]>
Tue, 09 Feb 2010 00:02:18 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3267802#p3267802
<![CDATA[Réponse à : se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3267764#p3267764 http://doc.ubuntu-fr.org/ssh

]]>
Mon, 08 Feb 2010 23:39:48 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3267764#p3267764
<![CDATA[se connecter a une machine à distance]]> http://forum.ubuntu-fr.org/viewtopic.php?pid=3267763#p3267763 Bonjour
voila j'aimerai savoir si c'est possible de se connecter à une machine qui est aussi sous ubuntu a distance , par exemple sur la machine de mon ami qui est entrain de me parler sur msn.
merci
ps: on m'a dit que c'était possible avec une commande dans le terminal

]]>
Mon, 08 Feb 2010 23:38:45 +0000 http://forum.ubuntu-fr.org/viewtopic.php?pid=3267763#p3267763