Q: What to do when I ssh to username@stat.ubc.ca (aka be.stat.ubc.ca) I see error: "no matching host key type found. Their offer: ssh-rsa,ssh-dss, etc..."?

Edit the ~/.ssh/config file and include:

host stat.ubc.ca

    KexAlgorithms +diffie-hellman-group1-sha1

    HostKeyAlgorithms +ssh-rsa

Q: How do I change my StatNet password?

There are 2 ways:

  • Method 1:
    Generate your hashed password here and send to help [at] stat.ubc.ca requesting for a password change
  • Method 2: from a terminal window:
    $ ssh your_account [at] be.stat.ubc.ca     (use your account to replace 'your_account')
    $ passwd  (type in your current password and then type the new password twice)
    $ exit   (close your terminal session)
Q: No matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1
Assume your login is: binh.dang
Please try this:
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 binh.dangjhchen [at] stat.ubc.ca (@stat.ubc.ca)
If you are using macOS please follow instructions here:
Q: How to add guest user on my virtual server?

Add a guest
Guest login name should be easy to identify and no space or special characters. 
ie. John Foo = john.foo
$ sudo useradd john.foo

Add guest password
$ sudo passwd john.foo
  Make a strong passwd for your guest and ask your guest  to call you for passwd.

Add guest to sshfs mounting group
$ sudo usermod -a -G fuse john.foo

Delete guest users account and all of their files
$ sudo userdel john.foo

Q: Does StatNet offer Dropbox alternative? Owncloud?

Server: https://owncloud.stat.ubc.ca/
Login and password are the same as StatNet
Disk quota 20Gb
Users can add their local storage or Dropbox/Goggle Drive  storage to their  Owncloud account

Dropbox: You will need App key and App secret from Dropbox for Owncloud client
to use Dropbox remote storage on its server.
Login Dropbox,
Create "Dropbox API app"
--> Files and Datastores

--> No, My app needs access to files already on Dropbox
--> All file types.
 

http://blog.gapinthecloud.com/2012/06/13/mounting-dropbox-into-owncloud/

More info
 here

There are 3 ways to access your files
a) Install a Desktop sync-client  How to here
     Sync Client download
           For Mac/Win/Linux
                  http://owncloud.org/sync-clients/
            For Smart Mobile Devices
                   https://owncloud.com/blog/now-use-owncloud-on-you-ipad-iphone-or-android
b) Using a web browser
      Support all major browsers. No plugin required
c) WedDav
       How to here

Complete Owncloud Desktop client Document here.

Q: SSH without a password. Setup SSH Keys on a Linux / Unix System.

On you local Mac/Linux laptop/workstation do:
$ mkdir .ssh
$ ssh-keygen -t rsa -b 4096 -f .ssh/mykeys
It will generate 2 files:  mykeys   and    mykeys.pub inside the .ssh folder.
Use ' ssh-copy-id' command' to copy the keys to our Virtual server.

Notes: Mac OSX does not have' ssh-copy-id' command. 
Download here:  https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh

$ sudo curl https://raw.githubusercontent.com/beautifulcode/ssh-copy-id-for-OSX/master/ssh-copy-id.sh -o /usr/local/bin/ssh-copy-id
$ sudo chmod +x /usr/local/bin/ssh-copy-id

Now you can copy the newly generated key to Virtual server. (Replace 'stty2u' with your users login name)
$ /usr/local/bin/ssh-copy-id -i .ssh/mykeys stty2u [at] rcloud.stat.ubc.ca

Add your key to your laptop/workstation.
$ssh-add .ssh/mykeys

Test it
$ssh stty2u [at] rcloud.stat.ubc.ca

You should not be asked for password.
Q: How to mount/unmount StatNet home directory using sshfs?

We use "sshfs" to mount your StatNet home directory securely.
For your convenient, we created a sshfs script in "/usr/local/bin/statfiles".
For usage, type 'statfiles' at the command line terminal.

Notes: If you are running batch jobs, you should mount and unmount statfiles manually.
A) To manually Mount:
$statfiles mount
$cd statfiles

B) To manually  unmount
$cd
$statfiles unmount


Howto  Use "sshfs" to mount your StatNet home storage automatically
1) Edit .bash_profile and remove these hashes, using vim or emacs.
   $ emacs .bash_profile
        ...
        statfiles mount
        sync
        cd statfiles
       ...
2) To unmount statfiles after logout
Edit .bash_login and remove these hashes
   $ emacs .bash_logout
        ...
        cd ~
        sync
        /usr/local/bin/statfiles unmount
       ...
3)Logout and Login your VM again.
   You need to supply your StatNet passwd twice.  One for your VM and one for your StatNet Home directory to mount.
4) Confirm your StatNet location
   $ pwd
   $ ls
5) Now you can start running your code.
   $ program your_code here.

Do not save anything important on your local VM disk since it has limited snapshot and backup.
Your local VM files is saved for 7 days and every hours.

Q: How do I access my virtual server?

1) Using Ssh
Windows

SSHSecureShell https://owncloud.stat.ubc.ca/index.php/s/JDRoPRAeWrUHIZH
or Putty
http://www.chiark.greenend.org.uk/~sgtatham/putty/

Mac/Linux
Open a Terminal and type
ssh stat.ubc.ca -l {your login name without these parentheses}

Save your working data on
/usr/local/data/username

If you don't have the data folder ready, Email our IT help group

2) Using screen and Xpra
https://www.stat.ubc.ca/Computing/FAQ/Answer/faq.php?faq=798&category=23

Q: What is my VM specs and softwares and how do I use it?

I) Virtual server specs:
RHEL6 64 bit OS.
initially has min 4 CPUs, 8Gb of RAM and
40Gb NFS mount of storage with 7 days local disk snapshot only.
You should use StatNet home directory as your main storage for better backup.
At anytime your project needs to have more CPU/Ram, email help at stat with brief
a explanation of why you need more resources.

Host: v{your_login_name}.stat.ubc.ca

Login/Passwd are the same as your StatNet
After you login, your VM will NOT mount your StatNet Home directory.
This is because we want you to understand how sshfs mounting work.
We created a sshfs script in "/usr/local/bin/statfiles"

II) Software installed:
 Matlab
 Maple
 Atlas
 Sage
 Octave
 Blas
 Lapack
 Numpy
 R statistics
 Spicy
 Xppaut
 Xrpa/Screen for running app nohup remotely.
 Opensource development tools

Screen
http://www.gnu.org/software/screen/
Xpra
http://xpra.org/
http://winswitch.org/