PoonLab / tn

Optimization of genetic clustering methods by predictive modeling
GNU General Public License v3.0
0 stars 0 forks source link

ssh_connect through R #29

Closed ConnorChato closed 4 years ago

ConnorChato commented 4 years ago

Trying to get SSH working through R's ssh library so that I can interface right through R studio instead of using the terminal. Interestingly, it doesn't work, here is the call.

ssh_connect("cchato@129.100.26.213", passwd = CORRECT-PASSWORD, verbose = 3)

It checks through a bunch of potential key encryption types unitl it gets to rsa and finds my key-file in /home/cchato/.ssh/id_rsa. Here's the error log with Verbose level 3.

ssh_userauth_publickey_auto: Trying to authenticate with /home/cchato/.ssh/id_rsa
ssh_socket_unbuffered_write: Enabling POLLOUT for socket
packet_send2: packet: wrote [len=348,padding=10,comp=337,payload=337]
ssh_packet_socket_callback: packet: read type 51 [len=28,padding=13,comp=14,payload=14]
ssh_packet_process: Dispatching handler for packet type 51
ssh_packet_userauth_failure: Access denied. Authentication that can continue: password
ssh_packet_userauth_failure: Access denied. Authentication that can continue: password
ssh_userauth_publickey_auto: Public key for /home/cchato/.ssh/id_rsa refused by server
ConnorChato commented 4 years ago

ssh from terminal still works fine. Here is the verbose readout before prompting me for the password.

debug1: Offering public key: RSA SHA256:3xPAPXz6zR0uZaM6KxVDnced5AP8miAkAk6wE0CMEeE /home/cchato/.ssh/id_rsa
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug2: input_userauth_pk_ok: fp SHA256:3xPAPXz6zR0uZaM6KxVDnced5AP8miAkAk6wE0CMEeE
debug3: sign_and_send_pubkey: RSA SHA256:3xPAPXz6zR0uZaM6KxVDnced5AP8miAkAk6wE0CMEeE
debug3: send packet: type 50
debug3: receive packet: type 51
Authenticated with partial success.
debug1: Authentications that can continue: password
debug3: start over, passed a different list password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup password
debug3: remaining preferred: ,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_is_enabled password
debug1: Next authentication method: password
ConnorChato commented 4 years ago

I'm currently running some analysis through R and pulling over some of the more high-level results that are untracable to the patient Ids (like network figs and GAIC traces)

ConnorChato commented 4 years ago

Currently working.