/srv/irclogs.ubuntu.com/2011/02/02/#ubuntu-cloud.txt

Bummedgot a ubuntu slice  on Amazon EC2 .. as well as other Centos slices02:44
flaccidfor real02:44
BummedI can ssh between slices02:44
flaccidi believe they are called instances02:44
BummedI can ssh using the same key from my laptop  to  Centos ..  but it fails going to the ubuntu instance02:45
flaccidcheck the ssh configuration02:45
Bummedfalls all the way back to asking for a password02:45
flaccidyou can debug with ssh -v on the client and /etc/init.d/ssh restart debug02:45
Bummed  /etc/init.d/ssh restart debug  fails with extra argument02:48
flaccidlet me check, that was a guess02:48
flacciduse /etc/init.d/ssh restart -d02:50
flaccidsee also man sshd02:51
Bummedlaptop runs completely through  connection attempt and doesn't log anything on the server.. which probably means my existing connection is holding the port open02:52
flaccidsounds like you need to reach the instance properly first02:53
=== dendrobates is now known as dendro-afk
Bummedthe only way to currently get there is  laptop -> centos instance -> ubunut instance02:54
flaccidbasic networking troubleshooting. tracert, nmap, ping, telnet etc.02:54
flacciderr traceroute. been watching nextgenhacker101 too much hehe02:55
flaccidoh and obviously ec2 security groups02:57
Bummednothing  at Amazon returns info to traceroute02:58
flaccidi think thats normal for most routes02:59
Bummedhave the security group set to allow port 2203:01
Bummedwhat is driving me nuts is that  instance to instance works with the same key that doesn't work from laptop to ubuntu instance03:04
flaccidcheck ssh configuration03:06
flaccidbut thats no good if you aint even hitting the sshd03:06
BummedI've gone so far as copy the Centos  sshd_config to the Ubuntu instance .. same results03:06
flaccidif its not coming up in sshd -d then its not reaching it03:09
Bummedtrue.. but then where is all the debug output  coming from03:13
flaccidsshd03:14
Bummedyes.. but where am I connecting to sshd if -d doesn't provide any details  .. that is the question03:15
flaccidum see your network admin heh. traceroute could get some hops at least03:16
flaccidthough if this ec2 internal, problem could be security groups or network issue03:16
Bummednmap  shows port 22 open on my ip ?03:22
Bummednmap  shows port 22 open on my ip03:22
flaccidif you telnet to it and the port stays open and nothing on sshd end then yeah its reaching a different host03:23
Bummedsshd is answering my  telnet03:24
Bummedshows right hostname and IP03:25
flaccidok then troubleshoot the handshake03:32
Bummeddebug1: Host is known and matches the RSA host key.03:33
Bummeddebug1: ssh_rsa_verify: signature correct03:33
flaccidright thats the host key03:33
Bummedthen it falls through to asking for a password03:34
flaccidit will give more details than that03:34
flaccidit should try keys03:34
=== dendro-afk is now known as dendrobates
Bummedgot a favorite pastebin ?03:38
flacciddpaste.org03:38
Bummedhttp://www.dpaste.org/QW5g/03:40
Bummedhttp://www.dpaste.org/UOwd/   << better pasted.. fumbled fingered the original03:43
flaccidcheck the auth/secure logs. problem could be debug2: key_type_from_name: unknown key type '-----BEGIN'03:43
flaccidi don't really have time to look into it properly. someone else here might03:43
Bummedno problem .. I've been beating my head against the wall for the last week .. so I'm just out of ideas03:44
BummedI believe that is the check for rsa1 key03:44
=== dendrobates is now known as dendro-afk
superxgl[root@CLC cloud]# euca-run-instances -n 1 -k mykey -t m1.small emi-CD7E14B812:49
superxglFinishedVerify: Not enough resources (0 < 1: vm instances.Not enough resources (0 < 1: vm instances.12:49
superxglhiiiiiiiii,all ,what 's the problem that i can not run instances ????12:50
superxglAVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk12:50
superxglAVAILABILITYZONE        |- m1.small     0002 / 0002   1    256     212:50
superxglAVAILABILITYZONE        |- c1.medium    0002 / 0002   1    256     512:50
superxglAVAILABILITYZONE        |- m1.large     0001 / 0001   2    512    1012:50
superxglAVAILABILITYZONE        |- m1.xlarge    0001 / 0001   2   1024    2012:50
superxglAVAILABILITYZONE        |- c1.xlarge    0000 / 0000   4   2048    2012:50
superxglbut " euca-describe-availability-zones verbose" shows that i should can run m1.small12:51
TeTeTsuperxgl: did you check the nc.log on the node controller when trying to start an instance? Maybe libvirt-bin has not properly started/not properly connected to the nc14:03
superxglTeTeT : i  found the problem., becuase i set the dom0_MEM= 350M , so it did not have enough memory to start i think,  after i removed the line dom0_MEM=350M , then i can start the instance now14:18
superxglbut i don't know i should not limit the dom0's memory ?14:19
=== dendro-afk is now known as dendrobates
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
superxglalso now i get into another problem , i use "SYSTEM" network mode, when i start an instance, it did get an ip address, but when i start the second instance, it can not get the ip address , what 's  the problem???14:48
TeTeTsuperxgl: no idea, I doubt anyone tests UEC with SYSTEM mode14:51
superxglwhy?14:57
superxglhmm...14:57
superxglbut i now use CentOS 5.5 + euca 2.014:58
superxgland both two instance used the same image15:05
Bummedany thoughts on why an Amazon EC2 instance of Ubuntu 10.10  will not accept  a keyed ssh connection from outside of the Amazon cloud ?15:06
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== dendrobates is now known as dendro-afk
=== dendro-afk is now known as dendrobates
=== dendrobates is now known as dendro-afk
smoserBummed, i suspect your security groups18:58
BummedI have  22 open for tcp in the security group .. what else might I need?18:59
=== mrjazzcat is now known as mrjazzcat-afk
mhall119Bummed: did you give it a subnet to accept connections on 22 from?20:10
Bummed0.0.0.020:11
mhall119Bummed: you gave it a public key?20:11
Bummedworks from other instances in the Amazon cloud .. just not from outside aka my laptop20:11
Bummedyes20:11
Bummedseveral ..20:11
mhall119hmmm...20:11
mhall119is openssh-server maybe just binding to the internal IP, not the external?20:12
Bummedeverytime I start debugging.. whomever I'm talking with says "create a new key"20:12
Bummedhmm.. let me go check20:12
Bummedhadn't thought about that possibility20:12
Bummedtcp        0      0 *:ssh                   *:*                     LISTEN20:13
Bummedfrom netstat -a20:13
mhall119hmmm20:13
mhall119are you using elastic ip or some form of load balancing?20:13
mhall119connecting as a different username from your laptop than you are from the other amazon instances?20:14
Bummedintersting that my origination is from the private ip of the instance I'm passing through to the public ip of the target20:14
Bummedelastic ips20:14
Bummedsame user names and keys .. regardless of point of origin20:15
mhall119okay, I'm not familiar with them, can you watch the logs and see if it's even seeing you try to connect?20:15
mhall119you can also try connecting to the public hostname instead of the elastic ip20:16
Bummedwith sshd_config set to DEBUG3 ..   I see nothing in the auth.log file and ssh -vv shows it finding  the appropriate key, but then falling down to asking for a password which is disabled20:16
mhall119huh20:17
mhall119it sounds like your ssh client isn't actually talking to that server20:18
Bummedgive me a moment to look up my amazon ip20:18
mhall119which raises the question, what is it talking to?20:18
Bummedthe ssh -vv log shows it is pointing at the right elastic ip20:18
Bummedkewl.. progress..  it works correctly the the public amazon ip.. just not to the elastic ip20:20
Bummednow the question is what does that tell me20:20
mhall119that the elastic IP isn't pointing to the right box?20:21
Bummednope .. according to elasticfox   instance details ..  both the public dns name and the Elastic IP point to the same ip20:22
Bummedtime to dig the public dns name20:23
mhall119and that 'same ip' you can ssh into directly?20:23
Bummedcorrect ..20:23
Bummedso what you have helped me figure out . is   ssh to public dns name works ... ssh to elastic ip  fails .. both point to the same ip20:24
mhall119maybe you have some old DNS cache?20:24
Bummedwell. my cache on my laptop is correct,  which implies the at least OpenDNS has the right info20:26
* mhall119 is running out of ideas20:26
mhall119I'm guessing it's something to do with elastic ip, but I've never used them, and I'm not even really sure what they are/what they do20:27
Bummedthat's where I've been for the last week  .. but know that the public dns works will allow my team to get back to work as temporary work around20:27
Bummedbasically, from what I can tell,  it lets you masquerade as an alternative host name .. instead of ec2-<IP>.compute-1.amazonaws.com   you can be  your.company.com20:28
Bummedand that can be on any instance in the amazon cloud.. the ip moves with you20:29
mhall119ok20:29
mhall119does the elastic ip get different firewall settings maybe?20:30
* mhall119 is just guessing now20:31
Bummedthe real kicker is why will it work to  as it to Centos instance, but fail to my Ubuntu instance20:35
mhall119if you're not seeing the login attempts to sshd when connecting to the elastic ip, it's not even getting to the OS20:37
mhall119it's got to be a configuration issue in AWS20:37
Bummedbut who or what is answering  ssh ?20:39
Bummedif I can figure that out .. then maybe I can figure out why things are so squirelly20:41
jmgallowayanyone know why I get a connection closed error when I try to ssh into an instance?20:57
Bummedfirewall blocking20:57
jmgallowayfirewall?20:58
jmgallowayI am using a security group when I start the vm...and open port 22, still doesnt work20:58
Bummedis sshd running ?20:58
jmgallowayon the vm?20:59
Bummedon the target20:59
jmgallowayI am just running the 10.04 desktop image that came with uec20:59
Bummedcheck that sshd is running .. check that you have reasonable rules in iptables21:00
jmgallowaycheck that sshd is running where?21:00
Bummeduec instance21:01
jmgallowayhow?21:01
Bummedhow did you start the instance?21:01
jmgallowayon a remote machine21:02
jmgallowayusing euca2ools..a linux remote desktop.  I see that it's running, but cant connect to it.21:02
Bummedok. .. I do everything with elasticfox... don't know much about euca2ools... does it offer a login action ?21:03
jmgallowayno, it just says running.21:04
Bummedok.. beyond my ability to help21:05
=== dendro-afk is now known as dendrobates

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!