SSH Connectivity to CRaSH 1.3

109 views
Skip to first unread message

Harsh Kumar

unread,
May 7, 2013, 12:55:23 AM5/7/13
to crash...@googlegroups.com
Hi,

I was trying to conenct via SSH to CRaSH 1.3, but the password 'crash' is not getting accepted. I have tried on multiple machines logged in as root and otherwise. Any clues?

--
Sincerely
Harsh Kumar
-------------------------------------------------------------------------------------------------------------------
Please consider the environment before printing this email.
Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. I accept no liability for any damage caused by any virus transmitted by this email.
-------------------------------------------------------------------------------------------------------------------

Julien Viet

unread,
May 7, 2013, 1:09:39 AM5/7/13
to crash...@googlegroups.com
the default password for ssh is "admin"

you can avoid password and use a public key since 1.2.3 release : http://www.crashub.org/reference.html#d5e482

--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes CRaSH User Group.
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse crash-users...@googlegroups.com.
Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 

Harsh Kumar

unread,
May 8, 2013, 7:43:22 AM5/8/13
to crash...@googlegroups.com
The password 'admin' is working, but even after generating a key using dsa/rsa and modifying the crash.properties file to point to the .pub key files, it is still prompting for password. Any way to fix this? What am i donig wrong?

Julien Viet

unread,
May 8, 2013, 3:46:37 PM5/8/13
to crash...@googlegroups.com
Hi,

you need to point to .pem files, i.e you need to transform your key file into a .pem format.

you can use this command line to achieve it:

openssl dsa -in ~/.ssh/id_dsa -outform pem -pubout > id_dsa.pem

and the id_dsa file should be pointed out by crash.properties.

Harsh Kumar

unread,
May 9, 2013, 12:31:41 AM5/9/13
to crash...@googlegroups.com
Hi,

It is still not working even after generating the .pem file. On top of that, it does not even accept the password 'admin' when i give authentication.

--
Vous recevez ce message car vous êtes abonné à un sujet dans le groupe Google Groupes "CRaSH User Group".
Pour vous désabonner de ce sujet, visitez le site https://groups.google.com/d/topic/crash-users/v32jLtdoNxY/unsubscribe?hl=fr.
Pour vous désabonner de ce groupe et de tous ses sujets, envoyez un e-mail à l'adresse crash-users...@googlegroups.com.

Pour plus d'options, visitez le site https://groups.google.com/groups/opt_out .
 
 



--

Julien Viet

unread,
May 9, 2013, 4:08:11 AM5/9/13
to crash...@googlegroups.com
which version of crash are you using ?

can you show us your crash.properties content ?

Harsh Kumar

unread,
May 9, 2013, 4:27:08 AM5/9/13
to crash...@googlegroups.com
I am using crash-1.3

crash.properties

# VFS configuration
crash.vfs.refresh_period=1

# SSH configuration
crash.ssh.port=2000
crash.ssh.keypath=~/.ssh/id_rsa.pem

# Telnet configuration
crash.telnet.port=5000

# Authentication configuration
#crash.auth=simple
#crash.auth.simple.username=admin
#crash.auth.simple.password=admin
crash.auth=key
crash.ssh.key.path=~/.ssh/id_rsa.pem

Harsh Kumar

unread,
May 16, 2013, 12:03:31 AM5/16/13
to crash...@googlegroups.com
Hi, Any Update on this? I am still not able to log in without password

Harsh Kumar

unread,
May 20, 2013, 2:58:55 AM5/20/13
to crash...@googlegroups.com
Hi,

The logs say the following:

INFO: Received SSH_MSG_USERAUTH_REQUEST
May 20, 2013 12:26:04 PM org.apache.sshd.server.session.ServerSession userAuth
INFO: Authenticating user 'admin' with method 'none'
May 20, 2013 12:26:04 PM org.apache.sshd.server.session.ServerSession userAuth
INFO: Unsupported authentication method 'none'
May 20, 2013 12:26:54 PM org.crsh.ssh.SSHPlugin destroy
INFO: Shutting down SSHD



Julien Viet

unread,
May 20, 2013, 3:04:10 AM5/20/13
to crash...@googlegroups.com
hi,

you need at least to give the full absolute path to the PEM file and not use tilda "~" inside the path value.

Harsh Kumar

unread,
May 20, 2013, 3:50:06 AM5/20/13
to crash...@googlegroups.com
Hi,

I removed the '~' in the path. Following is the full log that is generated on using key authentication:

May 20, 2013 1:18:29 PM org.apache.sshd.server.session.ServerSession <init>
INFO: Session created...
May 20, 2013 1:18:29 PM org.apache.sshd.server.session.ServerSession readIdentification
INFO: Client version string: SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1
May 20, 2013 1:18:29 PM org.apache.sshd.server.session.ServerSession handleMessage
INFO: Received SSH_MSG_KEXINIT
May 20, 2013 1:18:29 PM org.apache.sshd.server.kex.AbstractDHGServer next
INFO: Received SSH_MSG_KEXDH_INIT
May 20, 2013 1:18:29 PM org.apache.sshd.server.kex.AbstractDHGServer next
INFO: Send SSH_MSG_KEXDH_REPLY
May 20, 2013 1:18:29 PM org.apache.sshd.common.session.AbstractSession sendNewKeys
INFO: Send SSH_MSG_NEWKEYS
May 20, 2013 1:18:29 PM org.apache.sshd.server.session.ServerSession handleMessage
INFO: Received SSH_MSG_NEWKEYS
May 20, 2013 1:18:29 PM org.apache.sshd.server.session.ServerSession handleMessage
INFO: Received SSH_MSG_SERVICE_REQUEST 'ssh-userauth'
May 20, 2013 1:18:29 PM org.apache.sshd.server.session.ServerSession userAuth
INFO: Accepting user authentication request
May 20, 2013 1:18:29 PM org.apache.sshd.server.session.ServerSession userAuth
INFO: Authorized authentication methods: password
May 20, 2013 1:18:29 PM org.apache.sshd.server.session.ServerSession handleMessage
INFO: Received SSH_MSG_USERAUTH_REQUEST
May 20, 2013 1:18:29 PM org.apache.sshd.server.session.ServerSession userAuth

INFO: Authenticating user 'admin' with method 'none'
May 20, 2013 1:18:29 PM org.apache.sshd.server.session.ServerSession userAuth

INFO: Unsupported authentication method 'none'


Harsh Kumar

unread,
May 21, 2013, 4:33:54 AM5/21/13
to crash...@googlegroups.com, Julien Viet
Hi ,

In the logs it says method as 'password' as highlighted below. Should it not be changed to keys?? (while using keys)

Harsh Kumar

unread,
Jul 11, 2013, 5:25:18 AM7/11/13
to crash...@googlegroups.com
Hi,

I am still unable to ssh with a key. Can anyone help me?

No matter what I do, it still prompts for password.

Here is my crash.properties file


# VFS configuration
crash.vfs.refresh_period=1

# SSH configuration
crash.ssh.port=2000
#crash.ssh.key.path=/home/.ssh/id_dsa.pem
#crash.ssh.keypath=/home//.ssh/id_dsa.pem


# Telnet configuration
crash.telnet.port=5000

# Authentication configuration
#crash.auth=simple
crash.auth.simple.username=admin
crash.auth.simple.password=admin
crash.auth=key
crash.ssh.key.path=/home/.ssh/id_dsa2.pem
#crash.ssh.keypath=/home/.ssh/id_dsa2.pem
#crash.ssh.key.path=/home/crash/keys/id_rsa.pem

How I generated id_dsa2.pem as follows:

ssh-keygen -t dsa
openssl dsa -in ~/.ssh/id_dsa -outform pem -pubout > id_dsa2.pem

Julien Viet

unread,
Jul 11, 2013, 5:54:07 AM7/11/13
to crash...@googlegroups.com
Hi,

at least you need to change

crash.ssh.key.path

to

crash.auth.key.path

there is this video I recorded that shows the setup of SSH keys in context of vert.x mod-shell (based on crash)

Harsh Kumar

unread,
Jul 11, 2013, 6:13:01 AM7/11/13
to crash...@googlegroups.com
Hi ,

After changing the crash.properties to the following :


# VFS configuration
crash.vfs.refresh_period=1

# SSH configuration
crash.ssh.port=2000
crash.ssh.keypath=/home/.ssh/id_dsa2.pem


# Telnet configuration
crash.telnet.port=5000

# Authentication configuration
crash.auth=key
crash.auth.keypath=/home/.ssh/id_dsa2.pem
crash.auth.simple.username=admin
crash.auth.simple.password=admin

ssh is hanging. Nothing is happening

Can you share the link to that video?

Harsh Kumar

unread,
Jul 11, 2013, 6:31:17 AM7/11/13
to crash...@googlegroups.com
Hi,

I just saw the video. No luck still. Is there a different way to generate the keys?

BR
Harsh

Harsh Kumar

unread,
Jul 11, 2013, 7:38:27 AM7/11/13
to crash...@googlegroups.com, harsh...@live.in
Hi,

Logs say that it is "Unsupported authentication method"


INFO: Accepting user authentication request
Jul 11, 2013 5:04:50 PM org.apache.sshd.server.session.ServerSession userAuth

INFO: Authorized authentication methods: password
Jul 11, 2013 5:04:50 PM org.apache.sshd.server.session.ServerSession handleMessage
INFO: Received SSH_MSG_USERAUTH_REQUEST
Jul 11, 2013 5:04:50 PM org.apache.sshd.server.session.ServerSession userAuth

INFO: Authenticating user 'admin' with method 'none'
Jul 11, 2013 5:04:50 PM org.apache.sshd.server.session.ServerSession userAuth
Reply all
Reply to author
Forward
0 new messages