Tuesday, April 08, 2014

Cek port SSH di Kali Linux

root@Hulk:~# service --status-all
 [ - ]  apache2
 [ - ]  apt-cacher-ng
 [ ? ]  arpwatch
 [ + ]  atd
 [ ? ]  atftpd
 [ + ]  avahi-daemon
 [ - ]  beef-xss
 [ ? ]  binfmt-support
 [ - ]  bluetooth
 [ - ]  bootlogs
 [ ? ]  bootmisc.sh

 [ ? ]  checkfs.sh
 [ ? ]  checkroot-bootclean.sh
 [ - ]  checkroot.sh
 [ ? ]  console-screen.sh
 [ - ]  console-setup
 [ + ]  cron
 [ ? ]  cryptdisks
 [ ? ]  cryptdisks-early
 [ ? ]  darkstat
 [ + ]  dbus
 [ ? ]  dns2tcp
 [ - ]  dradis
 [ - ]  exim4
 [ + ]  gdm3
 [ - ]  greenbone-security-assistant
 [ ? ]  hdparm
 [ - ]  hostname.sh
 [ ? ]  hwclock.sh
 [ - ]  iodined
 [ - ]  kbd
 [ - ]  keyboard-setup
 [ ? ]  killprocs
 [ ? ]  kmod
 [ - ]  lvm2
 [ - ]  metasploit
 [ ? ]  miredo
 [ - ]  motd
 [ ? ]  mountall-bootclean.sh
 [ ? ]  mountall.sh
 [ ? ]  mountdevsubfs.sh
 [ ? ]  mountkernfs.sh
 [ ? ]  mountnfs-bootclean.sh
 [ ? ]  mountnfs.sh
 [ ? ]  mtab.sh
 [ ? ]  mysql
 [ ? ]  ndoutils.dpkg-new
 [ + ]  network-manager
 [ ? ]  networking
 [ - ]  nfs-common
 [ - ]  nginx
 [ - ]  npcd
 [ - ]  nsca
 [ - ]  ntp
 [ - ]  openvas-administrator
 [ - ]  openvas-manager
 [ - ]  openvas-scanner
 [ - ]  openvpn
 [ + ]  pcscd
 [ - ]  pnp_gearman_worker
 [ + ]  postgresql
 [ ? ]  pppd-dns
 [ - ]  procps
 [ + ]  pulseaudio
 [ ? ]  rc.local
 [ - ]  redsocks
 [ ? ]  rlinetd
 [ - ]  rmnologin
 [ - ]  rpcbind
 [ - ]  rsync
 [ + ]  rsyslog
 [ - ]  samba
 [ + ]  saned
 [ ? ]  screen-cleanup
 [ ? ]  sendsigs
 [ - ]  slapd
 [ - ]  smartd
 [ - ]  smartmontools
 [ - ]  snmpd
 [ ? ]  speech-dispatcher
 [ - ]  ssh
 [ - ]  sslh
 [ ? ]  stunnel4
 [ - ]  sudo
 [ + ]  teamviewerd
 [ ? ]  thin
 [ ? ]  truecrypt
 [ + ]  udev
 [ ? ]  udev-mtab
 [ ? ]  umountfs
 [ ? ]  umountnfs.sh
 [ ? ]  umountroot
 [ - ]  urandom
 [ - ]  x11-common

Lihat yang "ssh", tanda "-" artinya belum diinstalasi.


root@Hulk:~# apt-get install openssh-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openssh-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 35 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up oracle-java7-installer (7u51-0~webupd8~1) ...
Downloading Oracle Java 7...
--2014-04-08 10:46:52--  http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.tar.gz
Resolving download.oracle.com (download.oracle.com)... 139.193.253.35, 139.193.253.24
Connecting to download.oracle.com (download.oracle.com)|139.193.253.35|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.tar.gz [following]
--2014-04-08 10:46:52--  https://edelivery.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-i586.tar.gz
Resolving edelivery.oracle.com (edelivery.oracle.com)... 23.37.198.140
Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.37.198.140|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/errors/download-fail-1505220.html [following]
--2014-04-08 10:46:53--  http://download.oracle.com/errors/download-fail-1505220.html
Connecting to download.oracle.com (download.oracle.com)|139.193.253.35|:80... connected.
HTTP request sent, awaiting response... 200 OK

    The file is already fully retrieved; nothing to do.

Download done.
Removing outdated cached downloads...
sha256sum mismatch jdk-7u51-linux-i586.tar.gz
Oracle JDK 7 is NOT installed.
dpkg: error processing oracle-java7-installer (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of oracle-java7-set-default:
 oracle-java7-set-default depends on oracle-java7-installer; however:
  Package oracle-java7-installer is not configured yet.

dpkg: error processing oracle-java7-set-default (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 oracle-java7-installer
 oracle-java7-set-default
E: Sub-process /usr/bin/dpkg returned an error code (1)


root@Hulk:~# service ssh start
[ ok ] Starting OpenBSD Secure Shell server: sshd.

root@Hulk:~# service --status-all
...
 [ - ]  snmpd
 [ ? ]  speech-dispatcher
 [ + ]  ssh
 [ - ]  sslh
 [ ? ]  stunnel4
 [ - ]  sudo
...

[msmunir@wm ~]$ nmap -p 22 192.168.130.250

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2014-04-08 10:59 WIT
Interesting ports on 192.168.130.250:
PORT   STATE SERVICE
22/tcp open  ssh

Nmap finished: 1 IP address (1 host up) scanned in 0.126 seconds

[msmunir@wm ~]$ ssh msmunir@192.168.130.250
The authenticity of host '192.168.130.250 (192.168.130.250)' can't be established.
RSA key fingerprint is 70:31:c0:5f:97:45:6d:db:db:97:ba:de:59:9f:b9:ea.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.130.250' (RSA) to the list of known hosts.
msmunir@192.168.130.250's password: 
Linux Hulk 3.12-kali1-686-pae #1 SMP Debian 3.12.6-2kali1 (2014-01-06) i686

The programs included with the Kali GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Kali GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
msmunir@Hulk:~$ 


Sumber :
http://rumyittips.com/configure-ssh-server-on-kali-linux/
http://forum.linuxcareer.com/threads/1634-How-do-I-ping-a-specific-port-of-a-remote-server


No comments:

Post a Comment