Code Monkey home page Code Monkey logo

ssh_using_matlab's Introduction

Instructions

This README intends to give full information about how to use the package. Please follow the instructions to ensure package installation correctly.

About ssh_MATLAB

The package provided here attempts to create a link between the localhost and a remote machine like Raspberry Pi or Intel Edison etc.

Once the setup is done, you can give the following command in the MATLAB terminal:-

sshfrommatlab(user_name, host_name, password)

Usage/Setup

Clone/Download the repository into your local machine with MATLAB installed, preferably R2013b (v7.9) or greater

Open MATLAB and change your directory to the place where you cloned this repo.

Open sshfrommatlabinstall.m and run it. It should run without any errors and give a clean install of the Java Secure Shell library.

Now set user_name, host_name and password as per your requirements. In my case it was:-

user_name = 'pi'

host_name = '192.1681.120'

password = 'q'

Now run the following command as metioned earlier:-

`sshfrommatlab(user_name, host_name, password)`

If everything works fine, you should see a valid JavaConnection Object as your answer.

Use:-

sshfrommatlabissue(channel, command)

to issue commands (as strings) to the remote host via the secure shell.

In order to initiate file transfer between MATLAB and the remote host, you should give the following commands:

For sending files to the remote host from MATLAB issue:-

sftpfrommatlab(user_name, host_name, password, local_file_name, remote_file_name)

local___file___name is the COMPLETE address to the file in your system that you want to send to the remote host.

Example ('C:\Program Files\MATLAB\R2016a\bin\text.txt') for Windows or ('/home/yourUSERname/python.txt') for Linux

remote___file___name is the COMPLETE address to the file in your remote host where you want it to be stored.

Example ('/home/pi/python.txt') for R-Pi


For sending files from the remote host to MATLAB issue:-

scptomatlab(user_name, host_name, password, local_file_name, remote_file_name)

local___file___name is the COMPLETE address to the file in your system where you want to store the incoming file from the remote host.

Example ('C:\Program Files\MATLAB\R2016a\bin\text.txt') for Windows or ('/home/yourUSERname/python.txt') for Linux

remote___file___name is the COMPLETE address to the file in your remote host which you want to be copied to the local host.

Example ('/home/pi/python.txt') for R-Pi


Thanks

If you have any queries please feel free to contact me at [email protected]

ssh_using_matlab's People

Contributors

dronefreak avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.