Ohhh. Thank you so much namrata. This is what exactly my trainer gave us as a task. He taught with windows servers and gave task in Linux. And I executed successfully from this video. Thank you so much once again.
I have been working on this for the past 6 hours and everywhere I checked did not give me the solution. This is the best solution so far. Thanks very much
How do I Configure "authorized_keys" for an ssh server and "known_hosts" for an ssh client on each VM instance to allow passphraseless ssh login between two instance.
Hello namrata baji. Problem with ssh to linux ec2c. using putty pageant. my pc-->internet-->ec2-a public(ssh-ok)--->ec2-b private(ssh-ok)----vpc peering----ec2-c private(ssh-access-denied-publickey issue). inbound SG ssh port 22 open for ec2-c. vpc peering active and I can ping to ec2-c. all pkk uploaded to pageant and using check mark "agent forward" in putty. any idea?
Hi mam,,I got a question in AWS,in my company two developers (developer A and developer B) they have two instance(instance A and instance B) , developer A can access only instance A and developer B can access only instance B,
hi in target server how can u create without public key. its confused me i connected same i followed ur vedio, i got permission denied i given the chmos 600 filename but it showing same source server only. not connecting to target server
Hello Namratah, Is there any way to connect to target if i lose/replace the source machine aws key? I replaced key of source machine and now i'm not able to ssh to target? Thanking you in advance for your suggestion/Help.😊
Hi Namrata Thanks very much for sharing this valuable knowledge. I'm unable connect public ec2 to other private ec2. Can you Give details and how you connected the subnets in two servers.
Hi Namrata, I have followed all the steps as you have shown in this video, but at last part after changing the file permission to 600, I'm still getting the permission denied error as below Permission denied (publickey,gssapi-keyex,gssapi-with-mic) Could you please assist me on the same? Thanks
mam, where to learn these commands and what are these commands are these ssh commands or linux commands the same steps are worked for ubuntu to.. please reply me mam what are these commands thank you.. and i just felt got saved from corona mam.thank you..for this mam.
@@jobethagulan8645 Hi Jobeth, tried changing the file permission to 400, but still, I'm getting the same error as below Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
Hello Namrata! I did follow the steps and when I try to do ssh from my master with client private IP, it asks me for the password of the client and I don't remember it. Can you please help me with that?
I am getting connection timeout error when I try to do the same.I did change the permission of the file as well ,but still getting the same error.Kindly suggest
It is facing issues to connect .. check IP, credentials, security group settings esp. port 22 should be open and the source security group (if different) should have access and check your key.
well. it is working as normal user. But, it is refusing when i am trying as root user error like "Please login as the user "ec2-user" rather than the user "root" " Can you help me please ?
To login into ec2 you need to use ec2-user that is the default. You can switch to the root user after you have successfully logged in and need to perform activities of a root user.
@@NamrataHShah @NamrataHShah Thank you for your reply. I have copied the root pub key in the target node and enable public key access then it works. Actually l am setupin chef infra. So it's required direct root acces to deploy a cookbook. Now its fixed. Really I would like to apprentice your video. It was very useful in the beginnings.
@@NamrataHShah If i need passcode less ssh session between two ec2 (for ansible yaml to work) how i can proceed? please assist. i just copied the pub key to the authorised key file and it worked. I want to know if any more methods are there? peace
Ohhh. Thank you so much namrata. This is what exactly my trainer gave us as a task. He taught with windows servers and gave task in Linux. And I executed successfully from this video. Thank you so much once again.
I have been working on this for the past 6 hours and everywhere I checked did not give me the solution. This is the best solution so far. Thanks very much
Glad it helped!
Thanks alot Namrata!! I was trying this for almost 4 hrs and now finally did!
Glad it was helpful
Awesome.. well explained.. I was stuck at this point for more than 3 hours.. Thanks
Hi Namrata, This is the second time, I have benefitted by watching your video. Thanks a lot! Keep the good work going --- Regards Prashant
Glad it helped
Thanks you so much for this very simple and clear explanation
U r welcome
Thank you so much... Stuck on this from 2 days.. Thank you so much..🙏
Glad it helped
wonderfully demonstrated.Thank you NamrataHSHah
Glad you liked it!
Thank you so much namrata, you are my hero :)
Well explained. Thanks Namrata baji
I appreciate the job, great video. Done the job in one go.
A very heartful thanks Namrata
It's very helpful to me
Hi Namrata, thanks for your video Its helped me a lot to understand this issue and resolved for me.
Glad it was helpful!
Thanks Namrata Mam.....i was needed it
Very nicely explained, Namrata.
Glad it was helpful
TNX for making such imp video, its really very helpful ....
Nice video and it is a understandable way
Thanks.
Thankyou so much for the video well explained !!!
Thanks for this valuable sharing. Please continue sharing :-)
Thank you, I will
Thank you for making nice video and easly grabed it.
Nice info ,, keep doing great work
Thank you.
Thank you for your hard work. Very much appreciated.
Thankyou so much..my doubt clear..❤
Thank you so much ,it was very helpful for me , you taught easy way.
Thank you very much!!
You helped me a lot!
I tried same for 2 centos machines in AWS ....but is asking for pem password...But , I haven't set any password for pem file
Hi Namrata thanks for sharing the knowledge it worked, It would be helpful if you can explain on command functionalities as well.
Kindly elaborate of command functionalities. I have a few videos on CLI check them out
It was a great help
Glad it helped
Thank you so much mam. It worked like a charm
Great 👍
Hi thank you for the video.Can you SSH without the keypair?
no
Thank you very much, it's really useful
Glad it helped
How do I Configure "authorized_keys" for an ssh server and "known_hosts" for an ssh client on each VM instance to allow passphraseless ssh login between two instance.
Can we use it to connect from one instance to another if both are located in *Different Regions* ?! Please confirm. Thanks!
Hi Namrata,
Why second time putty asked about Enter passphrase for key"", How to solve that?
Useful video. Thanks
Thanks - great videoes
Thank you
Hello namrata baji. Problem with ssh to linux ec2c. using putty pageant. my pc-->internet-->ec2-a public(ssh-ok)--->ec2-b private(ssh-ok)----vpc peering----ec2-c private(ssh-access-denied-publickey issue). inbound SG ssh port 22 open for ec2-c. vpc peering active and I can ping to ec2-c. all pkk uploaded to pageant and using check mark "agent forward" in putty. any idea?
but what if the target has the public IP address? Should the process be the same?
Thanks much.. this helped a lot
@NamrataHShah: Will these steps work if I try to SSH from one linux EC2 instance to another in a different VPC?
I have connected as u shown bt not able to copy files. Please help me with this issue
Hi mam,,I got a question in AWS,in my company two developers (developer A and developer B) they have two instance(instance A and instance B) , developer A can access only instance A and developer B can access only instance B,
hi in target server how can u create without public key. its confused me
i connected same i followed ur vedio, i got permission denied i given the chmos 600 filename but it showing same source server only. not connecting to target server
thanq mam u saved me
Glad it helped
I downloaded the .ppk key used putty to ssh into the source ec2, but can I get .pem file?
is this about Connecting private instance with public instance in EC2 linux ??
Hello Namratah,
Is there any way to connect to target if i lose/replace the source machine aws key?
I replaced key of source machine and now i'm not able to ssh to target?
Thanking you in advance for your suggestion/Help.😊
very nice tutorial
Hi Namrata Thanks very much for sharing this valuable knowledge. I'm unable connect public ec2 to other private ec2. Can you Give details and how you connected the subnets in two servers.
If the subnets are in the same vpc then there is trust established already if not then u need to perform vpc peering and establish trust
Good one
Hi. Why doesn't your target machine have a public IP address?
Hi Namratha can you please show how to ssh 2 instaces of different vpc
Methodology is the same as long as the VPCs are peered. Refer to my VPC peering videos.
Hi Namrata, I have followed all the steps as you have shown in this video, but at last part after changing the file permission to 600, I'm still getting the permission denied error as below
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
Could you please assist me on the same?
Thanks
have u got solution for this?
Can uses this to log from aws linux to another centos 7 server at home
thank u mam for this tutorial..
ma'am why we don't have public IP into the target machine.
Think and let me know ...
can u explain if how we can share public key with private instance & connect using public key instead of private key(.pem)?
Thanks Namrata- what was the command you used after you connected to the private server from public ? and you created a file in the target server ?
mam, where to learn these commands and what are these commands
are these ssh commands or linux commands
the same steps are worked for ubuntu to..
please reply me mam what are these commands
thank you..
and i just felt got saved from corona mam.thank you..for this mam.
Is it possible to create 3 instances and deploy on each(database, nodeJs, ANgularjs) and then conect the three of them?
cheers ka, it is quite simple. thanks.
peace.
Is there any direct way to connect our second instance with the same keypair as first without using that command ??
not sure
How to change the private key? If it's exposed to somebody. Can you explain it for us?
Please share the process to change the permission of the pem file
on linux it is a command --> chmod
Thanks, this is working for me with ec2-user. I have postgres user and trying to do the same way, but errors out. Can you please help me here?
This method is for AWS EC2 communication ..
Awsome thank you so much
Hi madam will you help me how to provisioning afp2pdf automation server in aws
Very simple steps...unfortunately I got "Permission denied (publickey)" as an error message. I followed the steps
I.O Awani-Mayaki the same error for me
change the chmod option to 400
@@jobethagulan8645 Hi Jobeth, tried changing the file permission to 400, but still, I'm getting the same error as below
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
MAM,I TRIED TO SSH,BUT ALL TIME IT ASKING FOR PASSPHRASE KEY EVEN I DONT ADDED THE PASSPHRASE ,KINDLY HELP ME
so after doing this can I add these servers into our ansible hosts inventory and run playbook to install any application ?
You will need to add the code to login as a part of your script.
yes you can, simply edit /etc/ansible/hosts
[Group-Name]
ansible_user= ansible_ssh_private_key_file=
hlw
i got a problem there are show this message
Enter passphrase for key 'newfile':
how can i get the passphrase for key
Please help me
why targetlinuxec2 machine doesn't have public ip address
Here we are able to connect to Private ip and what what about if we need to connect to public ip?
I got answer thx
@@jpnaidu1 how bro am connecting through public ip and throwing the error permission denied
Thanks mam
can you make video on aws route53
Will try ... I don't have a registered domain name.
Hi Madam could you please explain using git bash also.. with out pemfile
will try
in nano editor of linux instance pem key is not pasting from notepad how to paste it commands ctrl +v is not working in nano
Hit enter or Ctrl U ... Ctrl V is for windows
Hello Namrata!
I did follow the steps and when I try to do ssh from my master with client private IP, it asks me for the password of the client and I don't remember it. Can you please help me with that?
I don't know your password.
Thanks you
Welcome
I am getting connection timeout error when I try to do the same.I did change the permission of the file as well ,but still getting the same error.Kindly suggest
It is facing issues to connect .. check IP, credentials, security group settings esp. port 22 should be open and the source security group (if different) should have access and check your key.
Hi Nihal
I also faced the same error.
Were you able to fix it?
If Yes, Can you please let me know what was the issue?
how to do SSH if both instance having different "Key pair"- file name ?
Name does not matter as long as the key pair is the same
well. it is working as normal user. But, it is refusing when i am trying as root user
error like "Please login as the user "ec2-user" rather than the user "root" "
Can you help me please ?
To login into ec2 you need to use ec2-user that is the default. You can switch to the root user after you have successfully logged in and need to perform activities of a root user.
@@NamrataHShah @NamrataHShah Thank you for your reply. I have copied the root pub key in the target node and enable public key access then it works. Actually l am setupin chef infra. So it's required direct root acces to deploy a cookbook. Now its fixed. Really I would like to apprentice your video. It was very useful in the beginnings.
hi there . When i do this it is asking me for the passphrase?????
If you create your key with passphrase then you will need to provide it. See if you create a key without the passphrase.
I got it the pem file was corrupted. I.e it was not copied properly
permission denied (publickey gssapi-keyex gssapi-with-mic) i tried everything but got this error
chmod 600
It's great
btw, how for passcode less authentication between two amz ec2?
please explain.
Kindly elaborate more
@@NamrataHShah If i need passcode less ssh session between two ec2 (for ansible yaml to work) how i can proceed? please assist.
i just copied the pub key to the authorised key file and it worked.
I want to know if any more methods are there?
peace
thank you
I'm unable to connect, I don't know why .. I followed your steps .. still not able to connect
Debug it … You might have missed something
thanks
You're welcome!
Mam your voice is not clearly audible plss be bit loud that we can understand words more clearly
I believe the voice is loud and clear. Try and increase your volume.
You are a problem solver please post your coarse on udemy of aws
Thank you
Thankyou