Showing posts with label ssh. Show all posts
Showing posts with label ssh. Show all posts

Fabric Python library to run SSH to multiple computers

Fabric Python library can be used to send SSH commands to multiple computers at the same time.

This comes useful when doing distributed updates to the SBC (i.e. Raspberry Pi) cluster.

http://www.fabfile.org/




As an Amazon Associate I earn from qualifying purchases.

Fabric Python library to run SSH to multiple computers

Fabric Python library can be used to send SSH commands to multiple computers at the same time.

This comes useful when doing distributed updates to the SBC (i.e. Raspberry Pi) cluster.

http://www.fabfile.org/




As an Amazon Associate I earn from qualifying purchases.

GitHub SSH

Go to:


Read:
https://gist.github.com/developius/c81f021eb5c5916013dc


$ ssh -T git@github.com


The authenticity of host 'github.com (192.30.253.112)' can't be established.

RSA key fingerprint is SHA256:nTh....

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'github.com,1xx.xx.xx.xx' (RSA) to the list of known hosts.

Enter passphrase for key '/Users/uki/.ssh/id_rsa':

Hi UkiDLucas! You've successfully authenticated, but GitHub does not provide shell access.


As an Amazon Associate I earn from qualifying purchases.

GitHub SSH

Go to:


Read:
https://gist.github.com/developius/c81f021eb5c5916013dc


$ ssh -T git@github.com


The authenticity of host 'github.com (192.30.253.112)' can't be established.

RSA key fingerprint is SHA256:nTh....

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'github.com,1xx.xx.xx.xx' (RSA) to the list of known hosts.

Enter passphrase for key '/Users/uki/.ssh/id_rsa':

Hi UkiDLucas! You've successfully authenticated, but GitHub does not provide shell access.


As an Amazon Associate I earn from qualifying purchases.

SHH key

$ git clone git@github.com:roboguice/roboguice.git
Cloning into 'roboguice'...

Permission denied (publickey).


$ ls -al ~/.ssh
total 120
-rw-------   1 uki  staff   1675 Oct 31  2012 id_rsa


COPY YOUR PUBLIC KEY to clipboard

$ pbcopy < ~/.ssh/id_rsa.pub 


PASTE your SSH key exactly as copied (i.e. in GitHub settings)
https://github.com/settings/ssh


$ git clone git@github.com:roboguice/roboguice.git roboguice
Cloning into 'roboguice'...
remote: Counting objects: 18463, done.

Receiving objects:  15%

If you like this post, please give me your 2 cents ($0.02 litterally) to show token of appreciation and encourage me to write more:

Donate Bitcoins



As an Amazon Associate I earn from qualifying purchases.

SHH key

$ git clone git@github.com:roboguice/roboguice.git
Cloning into 'roboguice'...

Permission denied (publickey).


$ ls -al ~/.ssh
total 120
-rw-------   1 uki  staff   1675 Oct 31  2012 id_rsa


COPY YOUR PUBLIC KEY to clipboard

$ pbcopy < ~/.ssh/id_rsa.pub 


PASTE your SSH key exactly as copied (i.e. in GitHub settings)
https://github.com/settings/ssh


$ git clone git@github.com:roboguice/roboguice.git roboguice
Cloning into 'roboguice'...
remote: Counting objects: 18463, done.

Receiving objects:  15%

    If you like this post, please give me your 2 cents ($0.02 litterally) to show token of appreciation and encourage me to write more:

    Donate Bitcoins



    As an Amazon Associate I earn from qualifying purchases.

    Raspberry Pi: Java 1.8


    Check existing version

    pi@raspberrypi ~ $ java -version
    java version "1.7.0_40"





    DOWNLOAD:
    Linux ARM v6/v7 Hard Float ABI 76.67 MB
    http://www.oracle.com/technetwork/java/javase/downloads/jdk8-arm-downloads-2187472.html

    COPY OVER TO PI

    $ scp ~/Downloads/jdk-8u33-linux-arm-vfp-hflt.gz pi@192.168.1.xxx:

    LOG IN TO PI

    $ ssh pi@192.168.1.xxx

    CHECK THE TRANSFER

    pi@raspberrypi ~ $ ls -alt
    total 178460
    -rw-r----- 1 pi pi 80392759 Feb 6 06:44 jdk-8u33-linux-arm-vfp-hflt.gz




    UNPACKAGE

    pi@raspberrypi ~ $ sudo tar zxvf jdk-8u33-linux-arm-vfp-hflt.gz -C /opt
    jdk1.8.0_33/COPYRIGHT
    jdk1.8.0_33/LICENSE
    jdk1.8.0_33/README.html
    jdk1.8.0_33/THIRDPARTYLICENSEREADME.txt


    jdk1.8.0_33/bin/
    ....






    CHECK VERSION

    pi@raspberrypi ~ $ /opt/jdk1.8.0_33/bin/java -version
    java version "1.8.0_33"
    Java(TM) SE Runtime Environment (build 1.8.0_33-b05)
    Java HotSpot(TM) Client VM (build 25.33-b05, mixed mode)



    As an Amazon Associate I earn from qualifying purchases.

    Raspberry Pi: Java 1.8


    Check existing version

    pi@raspberrypi ~ $ java -version
    java version "1.7.0_40"





    DOWNLOAD:
    Linux ARM v6/v7 Hard Float ABI 76.67 MB
    http://www.oracle.com/technetwork/java/javase/downloads/jdk8-arm-downloads-2187472.html

    COPY OVER TO PI

    $ scp ~/Downloads/jdk-8u33-linux-arm-vfp-hflt.gz pi@192.168.1.xxx:

    LOG IN TO PI

    $ ssh pi@192.168.1.xxx

    CHECK THE TRANSFER

    pi@raspberrypi ~ $ ls -alt
    total 178460
    -rw-r----- 1 pi pi 80392759 Feb 6 06:44 jdk-8u33-linux-arm-vfp-hflt.gz




    UNPACKAGE

    pi@raspberrypi ~ $ sudo tar zxvf jdk-8u33-linux-arm-vfp-hflt.gz -C /opt
    jdk1.8.0_33/COPYRIGHT
    jdk1.8.0_33/LICENSE
    jdk1.8.0_33/README.html
    jdk1.8.0_33/THIRDPARTYLICENSEREADME.txt


    jdk1.8.0_33/bin/
    ....






    CHECK VERSION

    pi@raspberrypi ~ $ /opt/jdk1.8.0_33/bin/java -version
    java version "1.8.0_33"
    Java(TM) SE Runtime Environment (build 1.8.0_33-b05)
    Java HotSpot(TM) Client VM (build 25.33-b05, mixed mode)



    As an Amazon Associate I earn from qualifying purchases.

    WARNING: UNPROTECTED PRIVATE KEY FILE!

    If you are getting this kind of error the the permissions on your files are modified incorrectly:

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0744 for '/home/your_name/.ssh/id_rsa' are too open.
    It is recommended that your private key files are NOT accessible by others.
    This private key will be ignored.
    bad permissions: ignore key: /home/your_name/.ssh/id_rsa





    @ .ssh $ ls -alt
    ..
    -rw-r--r--@  1 your_name  staff   222 Nov 26  2012 id_rsa.pub
    -rw-r--r--   1 your_name  staff   887 Nov 20  2012 id_rsa
    ...
    @ .ssh $ 

    To fix this problem change permissions:

    @ .ssh $ chmod 600 id_rsa
    @ .ssh $ chmod 600 id_rsa.pub
    @ .ssh $ ls -alt
    total 80
    ...
    -rw-------@  1 uki  staff   222 Nov 26  2012 id_rsa.pub
    -rw-------   1 uki  staff   887 Nov 20  2012 id_rsa_cnh
    ...
    @ .ssh $ 




    As an Amazon Associate I earn from qualifying purchases.

    WARNING: UNPROTECTED PRIVATE KEY FILE!

    If you are getting this kind of error the the permissions on your files are modified incorrectly:

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Permissions 0744 for '/home/your_name/.ssh/id_rsa' are too open.
    It is recommended that your private key files are NOT accessible by others.
    This private key will be ignored.
    bad permissions: ignore key: /home/your_name/.ssh/id_rsa





    @ .ssh $ ls -alt
    ..
    -rw-r--r--@  1 your_name  staff   222 Nov 26  2012 id_rsa.pub
    -rw-r--r--   1 your_name  staff   887 Nov 20  2012 id_rsa
    ...
    @ .ssh $ 

    To fix this problem change permissions:

    @ .ssh $ chmod 600 id_rsa
    @ .ssh $ chmod 600 id_rsa.pub
    @ .ssh $ ls -alt
    total 80
    ...
    -rw-------@  1 uki  staff   222 Nov 26  2012 id_rsa.pub
    -rw-------   1 uki  staff   887 Nov 20  2012 id_rsa_cnh
    ...
    @ .ssh $ 




    As an Amazon Associate I earn from qualifying purchases.

    How To SSH File-Share On Your Iphone/ iPod Touch (mac)

    Check out this video on YouTube:

    http://www.youtube.com/watch?v=-TUByq9HTbs



    As an Amazon Associate I earn from qualifying purchases.

    apt quotation..