How to get ssh access to a Ubuntu VM on Azure?

Good afternoon.
The Azura has created a virtual reality, everything went smoothly, but when I opened the console and tried to zakonektitsya via ssh - I threw out this:

> ssh root@some:90
ssh: connect to some host:port 20 90: Bad file number

And so every time you create an ubuntu vm :(
Maybe someone knows how to get rid of the problem? I will be glad to help)
September 19th 19 at 12:30
2 answers
September 19th 19 at 12:32
Solution
Try ssh -p 90 root@some
ssh -p 333 root@some
ssh: connect to host some port 333: Bad file number - Weldon.Simoni commented on September 19th 19 at 12:35
: Well, then let's in order: there just ssh raised and he's just hanging on 333 port? - zula_Kihn commented on September 19th 19 at 12:38
Yes. - Weldon.Simoni commented on September 19th 19 at 12:41
specify the port on 22 asked for a password in console, but when entering the password, gives Permission denied, please try again. The password I enter correctly. - Weldon.Simoni commented on September 19th 19 at 12:44
: I understand what you are trying to connect under Windows. Option three:
1) your firewall block the connection
2) your provider closed the port 333
3) correct settings on the ssh server - zula_Kihn commented on September 19th 19 at 12:47
: "Permission denied, please try again" suggests that prohibited entry under Ruth - zula_Kihn commented on September 19th 19 at 12:50
by the way, podkluchenie wines with the 10th Gave the message: "Warning: Permanently added '104.47.143.147:22,104.47.143.147' (ECDSA) to the list of known hosts." . I wanted to delete the file,but have not found it in a folder .ssh(there are only 2 files github). known_hosts can be? - Weldon.Simoni commented on September 19th 19 at 12:53
: Why remove? - zula_Kihn commented on September 19th 19 at 12:56
: so on the forum I decided) Oh well) still I went ) thanks for the great tip) - Weldon.Simoni commented on September 19th 19 at 12:59
September 19th 19 at 12:34
see Iptables
and run with the-v switch.it will show where the ends connect
possible on azure vm access only by key? - Weldon.Simoni commented on September 19th 19 at 12:37

Find more questions by tags UbuntuLinuxMicrosoftMicrosoft Azure