Category Archives: ssh

Passwordless ssh not working

I was getting the following with ssh -v user@remote_host debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/mike/.ssh/id_rsa debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey,password … Continue reading

Posted in linux, net, security, ssh | Tagged , | Leave a comment

Open new Chrome window from command line via SSH

I switch between computers and sometimes when I’m switching I need to push an URL/prepare a window so found a solution with the following command: mike@remotehost $ export DISPLAY=:0; nohup chromium –new-window https://github.com/deployphp/deployer#installation

Posted in browser, cli, linux, ssh, Uncategorized | Tagged , , | Leave a comment

SSHFS mounting without password with SSH keys

First we need to generate public and private keys on our host.When prompted for passphrase just hit enter to go without it nevillegroup@shell:~$ ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/home/nevillegroup/.ssh/id_rsa):Enter passphrase (empty for no … Continue reading

Posted in ssh, ssh-keygen, sshfs | Leave a comment

Backup with RSYNC and SSH authorized key

Finally I wrote my rsync backup script v. 0.1 https://raw.github.com/mikaelz/bin/master/backup.sh #!/bin/sh# ~/bin/backup.sh# # Some help from# http://www.sakana.fr/blog/2008/05/07/securing-automated-rsync-over-ssh/# https://wiki.archlinux.org/index.php/Rsync#Automated_backup_with_SSH# https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync# https://www.linux.com/news/enterprise/storage/8200-back-up-like-an-expert-with-rsync# Thanks# man rsync# -v be verbose# -h human readable bytes# -a, –archive archive mode; same as -rlptgoD (no -H) -H … Continue reading

Posted in backup, rsync, ssh | Leave a comment