LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-22-2014, 04:31 PM   #1
Lunar
Member
 
Registered: Feb 2005
Location: Texas, USA
Distribution: opensuse
Posts: 101

Rep: Reputation: 8
SSH Login - Bypass public Key check (temp disable passwordless login)


Hello,
I've search until I'm 'blue in the fingers'..
There is a lot of info on generating a key pair, uploading, configuring hosts etc.. But...

Here is my situation.
1) I have both id_dsa and id_rsa keys. Use one for GitHub other for Launchapd.
2) I can Login to them just fine, having copied my pub_key there.
3) the Problem is I also have a 'Reseller' (shared) web server at HostGator and I do not have root access on it.
4) Therefore, I can Not scp, or ssh-copy-id my Public Key to the Server's /.ssh/Autorize-whatever.
5) When I try and SSH into one of my Domains at HG, I am being Rejected, I assume because My KEY Does NOT match my 'cpanel' login user name (cpanel user is the same user, used for HG SSH login ('jailshell'))
6) If I temporarily re-name my ~/$HOME/.ssh directory to dot.ssh I can Login to my domain via SSH just fine.
7) the Question: How do I Bypass Key uses?
ie, How do I login as a plain user from console as if I did not have a private/public key?
8) There Has to be a way, because not all server have Key login or what if I just want to login to a clients server, just once to take a look around for them... I would Not want to go through the whole key generation, copy (upload) key routine... Right? !

9) This 'server' is mine, has been for 2 years and will remain 'mine' for the foreseeable future, so having a key would work and I would create a ~/.ssh/config file defining what key / login / server , but Again, I can Not copy the key to the 'shared' server.

10) # ssh -(NoKey_option_or_something) landis-at-landisreed.com -p xxxx ?????? some command line option to bypass key check and Just use the information provided in this login line, for this session. ????


Thank You in advance,
Landis.
 
Old 02-23-2014, 05:25 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Either pass the "PubkeyAuthentication no" option using "-o " on the command line or for a more permanent solution try something like this in your ~/.ssh/config:
Code:
Host whatever_provider_name
HostName whatever_machine_IPv4_address
Port 2222
User whatever_user_name
PasswordAuthentication yes
PreferredAuthentications password
PubkeyAuthentication no
*Note this isn't the way SSH should be used so please re-check the providers procedures to get pubkey auth enabled because I'm pretty sure they offer it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ssh public key login doesn't work as root user confconf Fedora 6 04-06-2011 04:08 PM
Putty/SSH login failed when using RSA public key: 'Server refused our key' itsecx@gmail.com Linux - Server 10 10-04-2010 02:19 PM
[SOLVED] SSH login with public key issue ZAMO Linux - Security 3 07-02-2010 04:36 PM
automatic login by using ssh but with out creating public key siris Programming 2 04-12-2010 08:40 AM
SSH: Automated Login via public key not working kregec05 Linux - Server 11 08-19-2009 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration