Getting connection refused while executing scp connection in amazon ec2 [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I want to copy my file from local machine to remote machine in amazon ec2. I am executing following command:
scp -i ilmkey.pem shahjahan.txt ubuntu#ec2-52-25-74-139.us-west-2.compute.amazonaws.com:~
I am getting following error:
ssh: connect to host ec2-52-25-74-139.us-west-2.compute.amazonaws.com
port 22: Connection refused lost connection
The command telnet HOSTNAME 22 gives:
telnet: could not resolve HOSTNAME/22: Name or service not known
I have set
SSH TCP 22
0.0.0.0/0
in security group tab. Please help me to solve this.

A "connection refused" error makes me think that sshd is not running or that the machine failed to boot. If the Security Group was rejecting you, the question would time out instead. If this instance was already running and SSH was working before, reboot the machine from the console and see if SSH comes back up when it reboots. Also look at the logs via the AWS console, and if you still can't get anywhere, contact AWS Support.

Related

PUTTY is not connecting [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
Hi I am tying to connect my local machine to Azure Linux (ubuntu 18.04) VM using PUTTY but it gives below error
I am referring to the below link
https://learn.microsoft.com/en-us/azure-stack/user/azure-stack-dev-start-howto-ssh-public-key?view=azs-2008#connect-with-ssh-by-using-putty
Are you not able to ssh only while using the putty? Can you connect by using any other way?
Error message what you posted above looks very general and the root cause for this issue could be anything.
Please, check that post on Ubuntu. There is a nice article, please review it. The only difference, it's about the EC2 instances, but nature the same:
This error can occur under the following circumstances:
You’re not connecting with the appropriate user name for your AMI
when you negotiate an SSH session with a VM.
You’re using the wrong
private key when you negotiate an SSH session with a VM.

How can I SSH remotely into my linux VirtualBox? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am trying to remotely access a virtual box remotely. Because this is a virtualbox hosted on a windows machine, it does not have it's own IP address to use for SSH login. I have tried changing the network settings to Bridge Adapter to get an IP, but nothing has worked. Are there some steps I am missing, or what else can I do to SSH into the box? Thanks.
If you were using the NAT mode before and you have no reason to change it other then the SSH, you can do it in that mode. Just expand the advanced settings in the network configuration and create a port forwarding rule for the port 22. Then you will be able to SSH to the VM by using the host's ip address.

Explanation of ssh command with option -D [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 7 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I am studying ssh and I haven't understood the following command with option D
ssh -D 9999 username#remotehost.net
can someone explain what this command does exactly with an example and when it is useful?
This will forward all packets to remotehost.net from localhost:9999 (in your example). In a nutshell this is socks proxy.
From ssh man page:
Specifies a local “dynamic” application-level port forwarding. This works by allocating a socket to listen to port on
the local
side, optionally bound to the specified bind_address. Whenever a connection is made to this port, the connection is
forwarded over
the secure channel, and the application protocol is then used to determine where to connect to from the remote machine. Currently
the SOCKS4 and SOCKS5 protocols are supported, and ssh will act as a SOCKS server. Only root can forward privileged ports.
Dynamic port forwardings can also be specified in the configuration file.

Connection refused on SVN checkout attempt [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I am using Linux on VMWare Workstation inside windows 7 and i want to access to the URL below in terminal but i always get this error back. I am totally sure that everything is correct because my friend has tried the same on his computer and it worked. Please advise me something about it .It is very important
svn co svn://svn.alunos.di.uminho.pt/projectname --username __ --password __
svn: E000111: Unable to connect to a repository at URL 'svn://svn.alunos.di.uminho.pt/__'
svn: E000111: Can't connect to host 'svn.alunos.di.uminho.pt': Connection refused
The problem is that the IP address of the VM is being blocked from connecting somehow. It could be being blocked by the server, or an intermediate firewall (because it doesn't recognise the IP address, or because you are using some network like a guest network or wifi, that blocks certain ports or hosts) or it could be that there is no route from the VM to the server.
Basically I would say it's an IT Helpdesk issue; however, if the Helpdesk does not support VMware, or does not support Linux, or does not support connecting to that server, then you will have to ask someone else.

Ubuntu Server VNC Connection [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I am trying to access my Ubuntu Server with Chicken of the VNC. I have GNOME installed on the server to which I can get access if I log onto the server locally and COTVNC will discover the server then through Bonjour service. Yet if I restart the server and do not log in locally then I have issues where my VNC Client does not discover the server any longer through Bonjour and I cannot connect even with manually inputting the IP address. I get Connection timed out error message from the client.
Any ideas how I can get around this as I do not want to have a keyboard and mouse connected to this server as it will be used as a media server?
Thanks
You need to start vnc server as a seperate service via /etc/init or /etc/init.d, and not as part of the session.

Resources