Showing posts with label shell. Show all posts
Showing posts with label shell. Show all posts

Thursday, October 25, 2018

check git project status (only first level)


#!/bin/sh                                                                                                                                                                     

clear
for d in `find . -name .git | sed -e 's|^./||' -e 's|/.git$||' | grep -v '/'`; do
    echo
    cd $d
    echo "================================================="
    pwd
    git pull
    git st
    cd -
done


Wednesday, October 18, 2017

strato hidrive - no matching cipher found.

in case you get  errors like...

rsync -a myfile user@rsync.hidrive.strato.com:users/user 
Unable to negotiate with 85.214.3.70 port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]

or

scp myfile user@scp.hidrive.strato.com:users/user
Unable to negotiate with 85.214.3.70 port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc
lost connection

put this into you ~/.ssh/config

host strato-scp
        hostname scp.hidrive.strato.com
        Ciphers aes128-cbc
        MACs hmac-sha1
        KexAlgorithms diffie-hellman-group1-sha1
        HostKeyAlgorithms ssh-rsa
host strato-rsync
        hostname rsync.hidrive.strato.com
        Ciphers aes128-cbc
        MACs hmac-sha1
        KexAlgorithms diffie-hellman-group1-sha1
        HostKeyAlgorithms ssh-rsa

And then connect with

rsync -a myfile user@strato-rsync:users/user
scp myfile user@strato-scp:users/user

Wednesday, April 01, 2015

back to the roots: remote script execution with ssh and shell scripts (pinspot)

Remote script execution framework for UNIX/Linux systems. Due to its flexible, zero dependency nature, it also can be used for configuration management and provisioning. Based solely on SSH and shell scripts https://github.com/agreif/pinspot