How to open SSH Server

B

bashcommando

Guest
Code:
apt-get install openssh-server openssh-client
service ssh start
If something doesn't work put sudo before it like
Code:
sudo apt-get install openssh-server openssh-client
sudo service ssh start
If that still doesn't work then
Code:
logout
root
[root's password here]
apt-get install openssh-server
service ssh start
If for some reason ssh doesn't work then attempt to create a dsa key
To secure that key type
Code:
chmod 600 [Name of key]
 


when you install openssh-server the service is started automatically.
 
Again very useful but what does -YC do?
Code:
-Y    Enables trusted X11 forwarding.  Trusted X11 forwardings are not
              subjected to the X11 SECURITY extension controls.
Code:
      -C    Requests  compression  of  all  data  (including  stdin, stdout,
              stderr, and data for forwarded X11 and  TCP  connections).  The
              compression  algorithm  is  the  same  used  by gzip(1), and the
              ``level'' can be controlled by the CompressionLevel  option  for
              protocol version 1.  Compression is desirable on modem lines and
              other slow connections, but will only slow down things  on  fast
              networks.  The default value can be set on a host-by-host basis
              in the configuration files; see the Compression option.
 
Code:
-Y    Enables trusted X11 forwarding.  Trusted X11 forwardings are not
              subjected to the X11 SECURITY extension controls.
Code:
      -C    Requests  compression  of  all  data  (including  stdin, stdout,
              stderr, and data for forwarded X11 and  TCP  connections).  The
              compression  algorithm  is  the  same  used  by gzip(1), and the
              ``level'' can be controlled by the CompressionLevel  option  for
              protocol version 1.  Compression is desirable on modem lines and
              other slow connections, but will only slow down things  on  fast
              networks.  The default value can be set on a host-by-host basis
              in the configuration files; see the Compression option.
So using -Y is like a remote desktop?
 
not really. It merely disables any kind of X11 security when streaming X over ssh. You still have to setup remote desktop. It is used in conjunction with it.
Cool. You really do learn something every day!
 
To install and enable on Arch Linux:
Code:
# pacman -S openssh
# systemctl start sshd
# systemctl enable sshd
Or using sudo:
Code:
$ sudo pacman -S openssh
$ sudo systemctl start sshd
$ sudo systemctl enable sshd
 

Members online


Top