copy with ssh Edit

  1. to remote host

cat localfile.conf | ssh user@hostname 'cat -> /tmp/remotefile.conf'

  1. from remote host

ssh user@hostname 'cat /tmp/remotefile.conf' > /tmp/localfile.conf

cat | ssh jm@ 'cat > /home/jm/'

no passwd Edit

Keep link alive Edit

tut Edit

vsftpd Edit

sshf Edit

commandlinefu sshf mount any remote directory on local file

sshfs -o workaround=all -o nonempty root@ /home/j/j

fusermount -u /home/j/j #for unmounting

ssh-copy-id username@hostname # Copy your SSH public key on a remote machine for passwordless login - the easy way

ssh keys Edit ssh without having to input password for remote machine access.

ssh-keygen -t rsa #press enter for any passphrases asked

a@A ssh b@ mkdir -p /home/.ssh

b@B's password: Finally append a's new public key to b@B:.ssh/authorized_keys and enter b's password one last time:

a@A: cat .ssh/ | ssh b@ 'cat >> .ssh/authorized_keys'

ssh user@host 'mysqldump dbname | gzip' > /path/to/backups/db-backup-`date +%Y-%m-%d`.sql.gz

Backup a remote database to your local filesystem

ssh connection refused Edit

ssh-keygen -R

scp Edit

scp /home/vids/*.mp4 j@

copy from this pc to remote pc, assumes both pc's using the defualt ssh port 22.

scp -C -P 200 /home/vids/*.mp4 j@

Specifies other port to use than default C enables compression

scp -r -C -P 200 /home/vids/ j@

copy folder contents recursively

folder created at /srv/ftp

arp scan Edit

links Edit