Tuesday, October 26, 2010

scp and ssh without password

Note - For the security keep changing your public and Private keys

-----------------------------------------

Steps:
  1. On the client run the following commands:

    $ mkdir -p $HOME/.ssh $ chmod 0700 $HOME/.ssh $ ssh-keygen -t dsa -f $HOME/.ssh/id_dsa -P '' 
    This should result in two files, $HOME/.ssh/id_dsa (private key) and $HOME/.ssh/id_dsa.pub (public key).
  2. Copy $HOME/.ssh/id_dsa.pub to the server.

  3. On the server run the following commands:

    $ cat id_dsa.pub >> $HOME/.ssh/authorized_keys2 $ chmod 0600 $HOME/.ssh/authorized_keys2 
    Depending on the version of OpenSSH the following commands may also be required:
    $ cat id_dsa.pub >> $HOME/.ssh/authorized_keys $ chmod 0600 $HOME/.ssh/authorized_keys 
    An alternative is to create a link from authorized_keys2 to authorized_keys:
    $ cd $HOME/.ssh && ln -s authorized_keys2 authorized_keys 
  4. On the client test the results by ssh'ing to the server:

    $ ssh -i $HOME/.ssh/id_dsa server 
  5. (Optional) Add the following $HOME/.ssh/config on the client:

    Host server          IdentityFile ~/.ssh/id_dsa 
    This allows ssh access to the server without having to specify the path to the id_dsa file as an argument to ssh each time.

----------------------------------------------------------------------------------
or http://www.linux.com/community/blogs/ssh-scp-without-password-to-remote-host-Look-Ma-no-Password-.html

----------------------------------------------------------------------------------

Monday, October 25, 2010

NCBI file format

NCBI file format-
.asn genome record in asn.1 format
.faa protein sequences in fasta format, text file
.ffn protein coding portions of the genome segments
.fna genome fasta sequence
.frn rna coding portions of the genome segments
.gbk genome in genbank file format
.gff genome features
.ptt protein table
.rnt rna table
.rpt summary report
.val binary file (genome project?)
.gb Genbank?
.gpff Genbank protein
.tar TAR archive, a common Linux archive file format.
.gz gzip, a compressed format. Not the same as .zip
.tar.gz gzipped tar, usually a tar file that was subsequently gzipped
.tgz gzipped tar, usually gzipped by the tar application
.zip Zip

Introduction :)

The purpose of this blog is to collect the information which is sometime very useful but difficult to find (in field of my research). For an example see the first post