How to install openssh in Archlinux

by
Share this Article: Facebook1Google+1Twitter2LinkedIn0Reddit0Pinterest0StumbleUpon0Digg

Question: How  to install Openssh  in Archlinux ?

Answer:

1- First installl  the  packages  from pacman

pacman -Sy openssh

2- Start openssh  daemon  with:

rc.d start  sshd 
:: Starting Secure Shell Daemon                                                   [DONE] 

3- Make  sshd  start with  the  computer

add  sshd  to DEAMONS  under /etc/rc.conf

DAEMONS=(syslog-ng network  netfs dbus gdm sshd crond)

You  cannot  connect  with the  normal way?

ssh  root@192.168.1.142
Output
ssh_exchange_identification: Connection closed by remote host

you  have  to  add this  first to allow  every one to  connect via  ssh

echo 'SSHD: ALL' >> /etc/hosts.allow

Then  you can connect  finally

ssh  root@192.168.1.142
Output:
The authenticity of host '192.168.1.142 (192.168.1.142)' can't be established.
ECDSA key fingerprint is 7c:18:34:25:af:ac:97:92:cb:72:5f:4b:07:57:25:de.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.142' (ECDSA) to the list of known hosts.
root@192.168.1.142's password: 
Last login: Tue Jun 21 18:33:19 2011
[root@myhost ~]# 

For questions please refer to our Q/A forum at : http://ask.unixmen.com/

Share this Article: Facebook1Google+1Twitter2LinkedIn0Reddit0Pinterest0StumbleUpon0Digg