Posts

Showing posts with the label ssh

SSH Login Without Password

SSH Login Without Password For this you required to generate your own personal set of private/public pair. ssh-keygen is used to generate that key pair for you. On the user�s home directory, on the localhost, type [local-host]$ ssh-keygen -t dsa This will ask you a passphrase. A passphrase is a sequence of words or other text used to control access to a computer system, program or data. A passphrase is similar to a password in usage, but is generally longer for added security. Once entered the passphrase you will be prompted to enter the same passphrase again for confirmation. The private key was saved in .ssh/id_dsa and the public key .ssh/id_dsa.pub. Now, copy the public key to the remote machine [ local-host ] $ ssh-copy-id -i ~ / .ssh / id_dsa.pub user @ remotehost or if you don�t have ssh-copy-id script installed use   [ local-host ] $ cat ~ / .ssh / id_dsa.pub | ssh user @ remotehost "cat - >> ~/.ssh/authorized_keys" Now on the localhost machine, on GNOME sel...

SSHMenu Keep Track of Your SSH Sessions

Image
SSHMenu Keep Track of Your SSH Sessions SSHMenu is an gnome panel applet that allows you to configure ssh connections with different presets (colors, etc...). Install SSHMenu Use following command to install sshmenu. sudo apt-get install sshmenu-gnome Now execute following command to restart gnome panel. killall -9 gnome-panel Now right click on any gnome panel and add ssh menu gnome applet. android application site download  file  now

SSH configuration sshd config file

SSH configuration sshd config file In SSH Server , we do have two types of configuration files. They are sshd_config and ssh_config. Here sshd_config is all about server side configuration. The behavior of SSH server written at this file. In this article I am writing a simple article with few best practices over sshd_config. Note: For edit that you are doing to sshd_config , you must restart sshd service. Please review my last article about ssh restart. 1. Allow login only with root and deny all other. This is actually simple. In the terminal type as a root user as menioned below # touch /etc/nologin Thats it. Then restart sshd service. Now try with normal user and you wont be allowed to login. 2.SSH Protocol switching. SSH have two versions as Version-1 , Version-2 Version-1 have only feature that user based authentication.Due to this we can only know who is getting login into server but we cant see from which machine or host he is doing this and this machine may be authorized or unau...

Ssh tunnels are great

Ssh tunnels are great At work Im connecting to multiple Munin statistics servers. On my lappytop Im only running one server, so how do I get multiple sets of results?  Answer: create a tunnel to another server! The Munin protocol is extremely easy, send "fetch X" to get statistics on X.  In my example df=Disk File usage.  Heres how to get local information, via Munin running locally on port 4949. $ echo fetch df | nc -q1 localhost 4949 # munin node at freebeer _dev_sda1.value 5.29318865322941 _dev.value 0.0339391645617528 _dev_shm.value 0.378827479751794 _var_run.value 0.00922469512382616 _var_lock.value 0 . Heres how to make a remote machines Munin (on port 4949) show up on localhost (port 4950). This means we can scan multiple local ports to get information on many different machines. ssh -fNL localport /localhost/ remoteport remotehost Option "-f" means drop into the background after asking for a password.  Next option "-N" is so the ssh connection doe...

SSH for Windows

SSH for Windows How to get SSH to work on Windows We are going to use Cygwins SSH package. Briefly, Cygwin is a Linux-like environment for Windows. It consists of two parts: A collection of tools which provide Linux look and feel. A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing substantial Linux API functionality. Setup SSH in Windows This guide should work for most Windows. It has been tested on Windows XP, 2000, and Vista. Download and install Cygwin. Note, if your selected download server is slow, try different one. There are good ones out there. When selecting the packages to install, make sure to include the following: SSH (Net/openssh). May also need zLib and TCP_Wrappers (both in Net). Be sure to install a good console text editor (Vim or Emacs or whatever). Set permissions for your SSH daemon configuration files. By default, Cygwin sets the file permissions to 600, so you cannot write to anything. To change this, you can set the group for the file, or se...

SSH INTER 17 5 2016

SSH INTER 17 5 2016 83.54.205.242|1234|1234|Spain (ES)|Catalonia|Torell�|08570 184.22.135.124|guest|guest|United States (US)|Pennsylvania|Scranton|18501 116.58.247.114|root|admin|Thailand (TH)|Krung Thep|Bangkok|Unknown 114.25.230.87|user|user|Taiwan (TW)|Tai-pei|Taipei|Unknown 119.42.73.49|admin|1234|Thailand (TH)|Unknown|Unknown|Unknown 179.57.126.127|user|user|Chile (CL)|Los Rios|Valdivia|Unknown 117.253.232.144|admin|admin|India (IN)|Unknown|Unknown|Unknown 117.253.102.222|admin|admin|India (IN)|Unknown|Unknown|Unknown 117.244.90.29|ubnt|ubnt|India (IN)|Unknown|Unknown|Unknown 61.62.184.185|user|user|Taiwan (TW)|Tai-pei|Taipei|Unknown 61.224.151.28|support|support|Taiwan (TW)|Tai-pei|Taipei|Unknown 175.232.91.32|sshd|sshd|Korea, Republic of (KR)|Unknown|Unknown|Unknown 114.25.166.196|user|user|Taiwan (TW)|Tai-pei|Taipei|Unknown 188.255.39.69|root|12345|Russian Federation (RU)|Moscow City|Moscow|Unknown 200.96.194.164|admin|admin|Brazil (BR)|Unknown|Unknown|Unknown 111.251.195.178|u...

ssh copy id in Mac OS X

ssh copy id in Mac OS X For some reason Macs don�t have this useful script so this will add it. sudo curl "http://phildawson.co.uk/ssh-copy-id" -o /usr/bin/ssh-copy-id sudo chmod +x /usr/bin/ssh-copy-id download  file  now

SSH Tunnel for Web Browsing Freedom and More

Image
SSH Tunnel for Web Browsing Freedom and More Ever been using the Internet somewhere where theres a firewall or web filter in place keeping you from browsing your favorite sites?  If you have a secure shell (ssh) server setup at home (or at a hosting site) you can easily use it to proxy all of your web browsing activity, bypassing most types of obstacles that would likely be in your way. For the purposes of this post, lets assume that youre running an out-of-the-box installation of OpenSSH server on a linux system, with the configuration files located in the /etc/ssh directory.  The most useful parameter in the /etc/ssh/sshd_config file is the "Port" setting.  By default, its set to 22, which is the standard port for ssh.  In most situations where your web browsing traffic is being filtered, port 22 is likely being blocked as well, so that doesnt help us too much.  You can change the line to Port 443 in order to have the ssh server listen on a port that is l...

start Unknown job ssh error while running Xubuntu Live CD

start Unknown job ssh error while running Xubuntu Live CD I tried running Xubuntu Live CD on an older laptop, but ssh server didnt wanted to start. Running the start init.d script sudo /etc/init.d/ssh start showed me this error " start: Unknown job: ssh " Searching for an answer lead me to this ubuntuforums.org post and this stackoverflow post. None of those solutions worked, however they helped me in a way to solve this problem. Xubuntu Live CD doesnt have ssh server installed by default. I installed the ssh client and server: sudo apt-get install ssh openssh-server -y and I tried to start it when it gave me the error. By running the ssh server manually /usr/sbin/sshd -D showed me this error " Missing priviledge separation directory: /var/run/sshd " By creating this directory, the problem was solved : sudo mkdir /var/run/sshd Now, I can simply run /usr/sbin/sshd -D and the ssh server works download  file  now

SSH using Public Key Authentication

SSH using Public Key Authentication Lately, Ive been implementing a solution to make SSH connections more secure and manageable (i.e., getting away from password authentication). A couple of benefits public-key authentication has over the default password authentication is: You only have to remember the passphrase of your private key rather than possibly dozens of username/password combinations for remote hosts. A password sent across the network, even protected by an SSH secure channel, can be captured when it arrives on the remote host if that host has been compromised. # Generate the Key Pair RSA authentication will need a passphrase to encrypt the private key. It is highly recommended to create a strong passphrase for the private key. A strong passphrase is at least 10 - 15 characters long and not a grammatical sentence. The following command creates a 4096-bit RSA key pair and prompts you for a passphrase: $ ssh-keygen -t rsa -b 4096 Generating public/private rsa key pair. Enter f...

SSHFS Network Shares made easy with SSH

SSHFS Network Shares made easy with SSH Overview SSHFS is a program that can use the SSH connection on a computer for mounting a network share / network drive from that target machine to your local computer. The great news is that you only need to install SSHFS on the computer which you are doing the mounting on , you do not need to change anything on the remote target computer. Put another way, if you want to mount your remote SSH machines harddrive on your local desktop, you only need to install SSHFS onto your desktop. This is particularly convenient when you dont have administrator control over the remote target client and cannot install extra software. SSHFS is running through an SSH connection (duh!), so your activity is as encrypted as your SSH connection is (which is pretty good if you use SSHv2, which you should be). SSHFS also inherents the permisssions of your SSH connection, so if you connect as a non-root user, you will be limited to the access that user account has. Insta...

SSH CentOS 6 How to install and configure ssh in CentOS 6

Image
SSH CentOS 6 How to install and configure ssh in CentOS 6 SSH : CentOS 6 : How to install and configure ssh in CentOS-6 In this tutorial we will see how to install and configure ssh in CentOS-6.7.  We will also try to connect from other system. Enjoy using video and do likes and comments:- download  file  now

ssh Login to remote host without password

ssh Login to remote host without password Most of remote systems are secured by SSH, and to gain remote control with terminal, you would need to ssh into the server. You will be prompted to login with your password on every session. To avoid typing password everytime, you need to setup as authorized client. Here is how you can do that with ssh key. First on your own client machine, generate the $HOME/.ssh/id_rsa.pub file: bash> ssh-keygen # When prompted to enter password, simply hit ENTER key to skip it! bash> cat ~/.ssh/id_rsa.pub xxxyyyzzz zemian@myhost # You will see a very long string instead of "xxxyyyzzz". Now you need to copy this public key string into your remote host. You need to ssh into the remote host with your valid password first to setup. If successful, the subsequent ssh into the remote host will not prompt you for password! bash> ssh myremotehost # Enter password to gain access After you are in the remote host: myremotehost> vim ~/.ssh/autho...

SSH suddenly stops working

SSH suddenly stops working I tried to ssh to my XO laptop today, but got the following error: me:~$ssh user@(IP addr of xo_laptop) @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has just been changed. The fingerprint for the RSA key sent by the remote host is blah:blah:blah:blah:blah:blah:blah:blah:blah:blah. Please contact your system administrator. Add correct host key in /home/USER/.ssh/known_hosts to get rid of this message. Offending key in /home/USER/.ssh/known_hosts:NUMBER RSA host key for (IP addr of xo_laptop) has changed and you have requested strict checking. Host key verification failed. me:~$ Why? Probably because I upgraded the OLPC laptop. How to fix it? Use ssh-keygen -R (IP ad...

SSH Premium SG GS Singapore 27 Desember 2013

Image
SSH Premium SG GS Singapore 27 Desember 2013 Free Account SSH Premium Singapore  Special Periode 27 Desember 2013 Standard Terms of Service SSH & VPN agar tidak digunakan untuk:  Torrent,  DDoS,  Pornografi, dan  Aktifitas internet negatif lainnya.  Rekomendasi software: Bitvise SSH Client Proxifier Tun2Socks Softether VPN Client SERVER SINGAPORE  DOWNLOAD: Password : Naufal Opal Blog "Akun akan tidak bisa connect, jika bandwith sudah habis" download  file  now

SSH X11 Forwarding Step By Step in Centos 6 x

SSH X11 Forwarding Step By Step in Centos 6 x How to do SSH X11-Forwarding :- In order to run an application on one CentOS 6 system and have it display on another system there are a couple of prerequisites. Firstly, the system on which the application is to be displayed must be running an X server. If the system is a Mac OS X, UNIX or Linux based system with a desktop environment running then this is no problem. If the system is running Windows, however, then you must install an X server on it before you can display applications from a remote system. A number of commercial and free Windows based X servers are available for this purpose and a web search should provide you with a list of options. Secondly, the system on which the application is being run (as opposed to the system which the application is to be displayed) must be configured to allow SSH access. From Server : Before you start  confirm the below packages are installed in your server. Run this command Step :1 # rpm ...