MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

  • SSH

Contents

  1. SSH
    1. Generate local key to access remote host
    2. Copy file to SSH server listening on different port
    3. Add listening ports on Ubuntu
    4. SSHFS

SSH

Generate local key to access remote host

On client:

Toggle line numbers
   1 ssh-keygen -t dsa # with empty password
   2 cd ~/.ssh
   3 cat id_dsa.pub # public key
   4 

On SSHserver:

Toggle line numbers
   1 mkdir -p ~/.ssh
   2 cd /home/userx/.ssh
   3 vi authorized_keys # paste the id_dsa.pub (public key) content generated on the client
   4 chmod 0600 authorized_keys

Login from the client with ssh userx@remote.example.org should ask for not password. Useful to invoke commands remotely using ssh

Copy file to SSH server listening on different port

Toggle line numbers
   1 scp -P 2222 filex userx@sshserver.example.org:/home/userx

Add listening ports on Ubuntu

Edit file /etc/ssh/sshd_config to set port 22 and 1234

Toggle line numbers
   1 Port 22
   2 Port 1234

Restart service with service ssh restart

SSHFS

Ability to mount a user filesystem with FUSE on a remote SSH folder

Toggle line numbers
   1 sudo apt install sshfs
   2 cd ~
   3 mkdir remotesshfsfolder
   4 sshfs user@host.example.org:/home/user remotesshfsfolder/ -p 1234
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01