I was a little addicted to ssh connection from mac to linux (ubuntu)

ssh command doesn't work

First, make a key using ssh-keygen normally,

~/.ssh/config


Host mylinux
HostName ip address
User Username
IdentityFile ~/.ssh/linux_rsa

Described in the form of.

$ ssh mylinux

I try to log in like this

ssh:connect to host ip address port 22: connection refused

Failure

Conclusion

The conclusion was that the daemon wasn't on the linux side for too simple ... I wonder if something happened when I forced a restart. Well, if it doesn't work as usual, you can just install it.

$ sudo apt-get install -y ssh

End with

What I tried (unfinished)

I see it with the vvv option, but there is no information.

Connect to linux-> mac

This worked.

Check the connection between nodes by ping

This also works.

Sites that look useful

https://kinsta.com/jp/knowledgebase/ssh-connection-refused/ Confirm that the port is not open in No. 3 of this. Check number 4. First, let's look at the daemon settings

$ ls /etc/ssh

Missing sshd_config I can't even start it. It turns out that there was no daemon.

Recommended Posts

I was a little addicted to ssh connection from mac to linux (ubuntu)
A note when I was addicted to converting Ubuntu on WSL1 to WSL2
I was a little addicted to running old Ruby environment and old Rails
I was a little addicted to the S3 Checksum comparison, so I made a note.
A story I was addicted to in Rails validation settings
A story I was addicted to before building a Ruby and Rails environment using Ubuntu (20.04.1 LTS)
I was addicted to rewriting to @SpringApplicationConfiguration-> @SpringBootTest
I was addicted to the roll method
I was addicted to the Spring-Batch test
Correspondence to A connection to XXXX was leaked.
RDP connection from Windows 10 to Ubuntu Desktop 20.04
A story I was addicted to when testing the API using MockMVC
How to run a GIF file from the Linux command line (Ubuntu)
Settings for SSH connection from Windows to Ubuntu using public key authentication
How to SSH into Ubuntu from a terminal with public key authentication
I was addicted to using RXTX on Sierra
Make an ssh connection from Mac / VirtualBox (CentOS)
I was addicted to installing Ruby/Tk on MacOS
I was addicted to doing onActivityResult () with DialogFragment
I was addicted to not being able to connect to AWS-S3 from the Docker container
SpringSecurity I was addicted to trying to log in with a hashed password (solved)
What I was addicted to when developing a Spring Boot application with VS Code
A memorandum because I was addicted to the setting of the Android project of IntelliJ IDEA
A story I was addicted to when getting a key that was automatically tried on MyBatis
I was addicted to the NoSuchMethodError in Cloud Endpoints
VNC connection to Ubuntu Desktop with Mac screen sharing.
I was addicted to the record of the associated model
I tried to decorate the simple calendar a little
I want to use a little icon in Rails
I want to redirect sound from Ubuntu with xrdp
I want to connect to Heroku MySQL from a client
A story I was addicted to with implicit type conversion of ActiveRecord during unit testing
What I was addicted to when introducing the JNI library
What I fixed when updating to Spring Boot 1.5.12 ・ What I was addicted to
What I was addicted to while using rspec on rails
I was addicted to setting default_url_options with Rails devise introduction
I was addicted to looping the Update statement on MyBatis
How to Burning a Install Disk of Windows from Ubuntu
I was addicted to the setting of laradock + VSCode + xdebug
What I was addicted to with the Redmine REST API
I was addicted to using Java's Stream API in Scala
It's not a big deal if you understand that I was addicted to receiving emails with Java Mail from Exchange Online
The story I was addicted to when setting up STS
How to set up SSH from scratch without connecting a monitor or keyboard [Raspberry Pi, Ubuntu]
What I was addicted to when updating the PHP version of the development environment (Docker) from 7.2.11 to 7.4.x
I tried to create a Spring MVC development environment on Mac
What I was addicted to when implementing google authentication with rails
I am studying to change jobs from inexperienced to a web engineer.
How to open a script file from Ubuntu with VS code
I tried to generate a C language program source from cURL
WSL2 There was only a steady way to get Ubuntu20.04 back to WSL1
I was addicted to the API version min23 setting of registerTorchCallback
[Ssh server] ubuntu ssh server construction-ssh connection from inside and outside the LAN
A story that I was addicted to twice with the automatic startup setting of Tomcat 8 on CentOS 8