Wowza Community

EC2 using Putty SSH: Server refused our key

If you already have a web server it be better to put the html and swf files there, but you can do it. If you install apache on the wowza server you can’t use port 80 for Wowza.

Richard

No, it would just be this:

rtmp://174.129.214.73/simplevideostreaming

“simplevideostreaming” is the name of a Wowza application. It is also the name of the html and swf file which go on a web server, the rtmp url is what the swf uses to connect to Wowza.

Richard

The embed source is an http url to the swf.

Richard

I think I mislead this morning, confusing embed with streamer in JW Player.

In any case, html and swf go on the web server and have http urls, and the Flash player connects to Wowza with rtmp url.

Sorry,

Richard

But that’s the Wowza server, not a web server. Right?

swf files go on the web server.

Also, it doesn’t look like Wowza is runnning at that address. Probably you haven’t opened ports on security group. Add tcp 1935, 80, 443 in the default security group. See this post.

Richard

Those are ports, put those in box labeled “Port”, one at a time. Here is a list of ports you might want to add:

TCP Ports

21 (ftp)

22 (ssh)

80 (http)

443 (ssl)

554 (this is for rtsp)

1935 (wowza)

3306 (this is mysql)

8084,8085 (this is for JConsole)

UDP Ports

6970 - 9999 (this is for rtp)

It’s working better now. You just need to add a folder to the Wowza applications:

/home/wowza/applications/simplevideostreaming

Also, the Exremists.m4v is not on the ec2 instance. So use this to test stream

merry_melodies_falling_hare.flv

Richard

Nevermind about about simplevideostreaming folder. I see you have “vod”

This is working now, congrats:

http://xxx.nmatv.com/index.htm

rtmp://174.129.214.73/vod

merry_melodies_falling_hare.flv

Richard

Hi Richard - thanks for the reply…

Did you convert the keypair with puttygen?

yes. The new file is called wowza-keypair-putty.ppk

Re: Elasticfox. Wonder why I need Elasticfox or the command line at all, since I am able to create instances using the AWS EC2 Console?

I installed ElasticFox, created a keypair called elasticfox1.pem, saved it, loaded it, got this as result:

Couldn’t launch: c:\Program Files\Putty\putty.exe

Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIProcess.init]

I then launched putty separately and used the elastic IP to find the server. Got the following error when I tried to login as root:

Unable to use key file “C:\EC2\keys\elasticfox1.pem” (OpenSSH SSH-2 private key)

login as: root

Any thoughts? I have been at this for over a week and I still can’t get it running. Any help would be greatly appreciated.

Thanks

Mike

Progress… I was able to launch an instance from Elasticfox, and then open a connection through putty successfully.

At this point I assume I would have FTP access to the server using port 22. I associated the Instance ID with the Elastic IP address, and tried to FTP into the site using wowza/password (as per page 12 of the WowzaProForAmazonEC2_UsersGuide.pdf)

Using username “wowza”.

Server refused our key.

No supported authentication methods left to try!

:frowning:

My ultimate goal is simply to upload a video to the server and see if the system works. But I have been at it for a week… I think a training video would be good.

Hi Richard - how do you add port 21 to the security group?

From ElasticFox, I tab to Security Groups. I have set “Basic” security as the default. There are a number of options under “Protocol Details”, but no option for FTP. It does allow Allows RDP, SSH and HTTP.

Thanks for your reply.

Mike

Thanks, that worked!

I was able to login via SFTP using “root” and the password “toor”.

I have two questions:

  1. how to I change the root password?

  2. I uploaded a simple index.htm file to the HOME directory, but the file is not appearing when I call it using http://my.ip.12.34/index.htm

Does this mean that I need to install the http server independently?

Thanks.

Mike

Thank you.

Two more questions:

  1. re WowzaMediaServerPro_UsersGuide.pdf, on page 9 -14: how can I tell if Wowza is running as a service on the server right now?

  2. There is a stock FLV file located here: http://174.129.214.73/content/merry_melodies_falling_hare.flv If the server were running, I expect this pathway would return the flash movie. Therefore I will assume the WMP server needs to be started as a SERVICE as noted on page 14 of the PDF.

Thanks again for your kind patience in answering my questions.

Mike

Thank you.

Two more questions:

  1. re WowzaMediaServerPro_UsersGuide.pdf, on page 9 -14: how can I tell if Wowza is running as a service on the server right now?

  2. There is a stock FLV file located here: http://174.129.214.73/content/merry_melodies_falling_hare.flv If the server were running, I expect this pathway would return the flash movie. Therefore I will assume the WMP server needs to be started as a SERVICE as noted on page 14 of the PDF.

Thanks again for your kind patience in answering my questions.

Mike

Richard -

I found that file, and dropped it in the following server directory:

/root/home/wowza/conf/SimpleVideoStreaming/client/

and also here:

/root/home/wowza/content/

I have also downloaded the latest Apache server, which I then uploaded to the root directory of the EC2 server here:

root/httpd-2.2.11.tar.gz

Question: Is it advisable to install Apache at this time, so that I might have access to the available html files that call the flv and swf files independently of the JC browser.

I understand… so, for example, the html file will contain a snip of flash code that references the server file something like this:

… where “VALUE” = the directory pathway to the flv file located on the wowza server.

Is this correct? If so, I will set up a test page on our existing website.

Please let me know ASAP.

Thanks

Mike

Hi Richard -

I have set up a page located on a different server here:

http://xxx.nmatv.com/index.htm

The index file contains the exact contents of simplevideostreaming.html with this exception:

Please confirm the addressing sytem:

rtmp://174.129.214.73/simplevideostreaming.swf

Thank you!

Mike

Hi Richard -

Okay, here’s what I have so far:

At this location (http://xxx.nmatv.com/index.htm) I have placed an HTML file that makes the following call:

Thus the embed source is: rtmp://174.129.214.73/simplevideostreaming

So… where do I place the FLV video? Where exactly is the “streambox”?

Here’s what I have right now:

http://xxx.nmatv.com/index.htm , which is still not loading a movie.

<embed src="http://174.129.214.73/simplevideostreaming.swf"

The wowza server is located at Elastic IP http://174.129.214.73

Here’s the relevant file pathways on the wowza server:

/root/home/wowza/

conf/simplevideostreaming/client/simplevideostreaming.html

conf/simplevideostreaming/client/simplevideostreaming.swf

content/merry_melodies_falling_hare.flv

content/simplevideostreaming.swf

From the Security tab in Elasticfox…

I select “Other” from the dropdown

Protocol = TCP/IP

Port = 21

Host = 0.0.0.0/0

Click Add

Where do I add these numbers: 1935, 80, 443?