Skip to main content

Connect to a Remote Server via SSH

SSH is a network protocol used for performing remote operation securely, including command-line logins, command executions and data communications. The ssh command in Unix operating systems implements the SSH protocol between an SSH client running on the local machine and an SSH server running on the remote machine.

* if username same on both 'local' and 'remote' host
          ssh remote_host
* if username same on both 'local' and 'remote' host
          ssh remote_username@remote_host

Example:
remote_host : 10.10.10.10
remote_username : admin
remote_password : password

1. ssh remote_username@remote_host [e.g. ssh admin@10.10.10.10 ]

Note :
If this is first time you will see a message like this,
ECDSA key fingerprint is SHA256:E03Sku6m5XZNEqxJokopaP9SHKVopVw4vwAkJQZ4a+E.
Are you sure you want to continue connecting (yes/no)?

2. yes

Note :
You will see another message
Warning: Permanently added 'remote_host' (ECDSA) to the list of known hosts.
admin@remote_host's password: _

3. Enter password

Note :
For successful login, system returns the remote hosts information
[e.g. Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 3.13.0-96-generic x86_64)
Last login: Tue Oct  4 05:11:49 2016 from 27.147.155.58 ]

Comments

Popular posts from this blog

Create ofbiz Component / Plugin

Plugins are standard OFBiz components that reside in the specialpurpose directory. Plugins can be added manually or fetched from a maven repository. The standard tasks for create new plugin is giving below. To Create a new plugin. The following project parameters are passed: - pluginId : mandatory - pluginResourceName : optional, default is the Capitalized value of pluginId - webappName : optional, default is the value of pluginId - basePermission : optional, default is the UPPERCASE value of pluginId Enter following command below to create component/plugin, ./gradlew createPlugin -PpluginId= myplugin or ./gradlew createPlugin -PpluginId= myplugin -PpluginResourceName= MyPlugin -PwebappName= mypluginweb -PbasePermission= MYPLUGIN` The above commands achieve the following: - create a new plugin in /specialpurpose/myplugin - add the plugin to /specialpurpose/component-load.xml Once the component is created, you should load its data (required to grant access rights to t

Set ANT_OPTS on Ubuntu

1. See the error :  Please set the environment variable ANT_OPTS to the recommended value of "-Xmx1024m -XX:MaxPermSize=512m". 2. It recommend you a value "-Xmx1024m -XX:MaxPermSize=512m" 3. Open terminal and execute     sudo nano .bashrc [open .bashrc file in edit mode] 4. Add this two lines at the end of the file     ANT_OPTS="-Xmx1024m -XX:MaxPermSize=512m"     export ANT_OPTS   5. Now save the file. 6. source .bashrc Note: Don't do that using "fish" or other terminal. Always use Ubuntu default terminal.

Install and Configure JAVA on Ubuntu

Installing the Default JRE/JDK First, update the package index. $ sudo apt-get update Next, install Java. Specifically, this command will install the Java Runtime Environment (JRE). $ sudo apt-get install default-jre There is another default Java installation called the JDK (Java Development Kit). The JDK is usually only needed if you are going to compile Java programs or if the software that will use Java specifically requires it. The JDK does contain the JRE, so there are no disadvantages if you install the JDK instead of the JRE, except for the larger file size. You can install the JDK with the following command: $ sudo apt-get install default-jdk Installing the Oracle JDK First, add Oracle's PPA, then update your package repository. $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update Then, depending on the version you want to install, execute one of the following commands: $ sudo apt-get install oracle-java6-installer $ sudo apt-get install ora