Vom Laptop mit X-Client auf den PC einloggen

Thomas Bee thomasbee at web.de
Fri Oct 29 19:47:37 CEST 2004


Am Freitag 29 Oktober 2004 18:55 schrieb Jan-Benedict Glaw:
> 
> Wie versuchst Du's denn?

Wie Du es gesat hast;-)

pc:/home/tb# apt-get install xauth
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
E: Konnte Paket xauth nicht finden

pc:/home/tb# apt-cache search xauth
xbase-clients - miscellaneous X clients
xvfb - virtual framebuffer X server

Das Paket x-base-clients ist installiert

Hier meine sshd_config:

pc:/home/tb# cat /etc/ssh/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 600
PermitRootLogin yes
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#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 no to disable s/key passwords
#ChallengeResponseAuthentication yes

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


# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no

# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes

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

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

Subsystem       sftp    /usr/lib/sftp-server

UsePAM yes

Der X-Server (PC) ist neu gestartet mit der Änderung der sshd_config.

Ein Versuch über den Laptop mit 

tb at mobil: ssh -C -X tb at 192.168.0.2
bringt die password-Abfrage zum vorschein und er wechselt nach:

tb at pc:

Nur da ist kein X.
Schön wäre auch der kdm-Loginmanager;-)

Wie könnte es weiter gehen?


-- 
Mit freundlichen Grüßen

Thomas Bee
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20041029/bbdebd1c/attachment.sig>


More information about the Linux mailing list