SSH Befehle?

Post Reply
Message
Author
Freshmaker

SSH Befehle?

#1 Post by Freshmaker »

Ich kenn mich denk ich schon ganz gut aus mit den SSH befehlen *g* aber trotzdem weiß ich 1 oder 2 nicht also z.B. den User Ausloggen und wenn die Passwordabfrage kommt da loggt der sich bei meinem Linux PC immer mit dem dem Nick ein den ich aktuell hier auf dem pc hat und ich kann mich garnit als "user22" anmelden

User avatar
jochen
prolinux-forum-admin
Posts: 699
Joined: 14. Jan 2000 15:37
Location: Jülich
Contact:

#2 Post by jochen »

Als User "user22" anmelden: ssh user22@rechner.domain
In der Manualpage zu ssh ist das schon ganz gut erklärt!

Abmelden: Öhm, exit, logout oder <Strg-D>, wenn Du in einer Shell bist... Das hat aber nix mit der ssh zu tun. An der Konsole meldet man sich genauso ab.

Jochen
Die grösste Lüge der EDV? "Mal eben..."

Guest

#3 Post by Guest »

merci das mit dem user@rz.de is mir nimma eingefallen cool danke

User avatar
max
Posts: 806
Joined: 14. May 2000 12:55
Location: Ruhrpott

#4 Post by max »

ein "ssh" ohne Parameter hätte dir folgendes verraten:

Code: Select all

Usage&#58; ssh &#91;options&#93; host &#91;command&#93;
Options&#58;
  -l user     Log in using this user name.
  -n          Redirect input from /dev/null.
  -a          Disable authentication agent forwarding.
  -X          Enable X11 connection forwarding.
  -x          Disable X11 connection forwarding.
  -i file     Identity for RSA authentication &#40;default&#58; ~/.ssh/identity&#41;.
  -t          Tty; allocate a tty even if command is given.
  -T          Do not allocate a tty.
  -v          Verbose; display verbose debugging messages.
  -V          Display version number only.
  -P          Don't allocate a privileged port.
  -q          Quiet; don't display any warning messages.
  -f          Fork into background after authentication.
  -e char     Set escape character; ``none'' = disable &#40;default&#58; ~&#41;.
  -c cipher   Select encryption algorithm&#58; ``3des'', ``blowfish''
  -p port     Connect to this port.  Server must be on the same port.
  -L listen-port&#58;host&#58;port   Forward local port to remote address
  -R listen-port&#58;host&#58;port   Forward remote port to local address
              These cause ssh to listen for connections on a port, and
              forward them to the other side by connecting to host&#58;port.
  -C          Enable compression.
  -N          Do not execute a shell or command.
  -g          Allow remote hosts to connect to forwarded ports.
  -4          Use IPv4 only.
  -6          Use IPv6 only.
  -2          Force protocol version 2.
  -o 'option' Process the option as if it was read from a configuration file.
oder "man ssh":

Code: Select all


NAME
     ssh - OpenSSH secure shell client &#40;remote login program&#41;

SYNOPSIS
     ssh &#91;-l login_name&#93; &#91;hostname | user@hostname&#93; &#91;command&#93;

     ssh &#91;-afgknqtvxCNPTX246&#93; &#91;-c cipher_spec&#93; &#91;-e escape_char&#93; &#91;-i
         identity_file&#93; &#91;-l login_name&#93; &#91;-o option&#93; &#91;-p port&#93; &#91;-L
         port&#58;host&#58;hostport&#93; &#91;-R port&#58;host&#58;hostport&#93; &#91;hostname |
         user@hostname&#93; &#91;command&#93;

...aber ein RTFM ist mir jetzt zu langweilig... ;-)

Post Reply