Hot answers tagged

30

Using the GUI See this SO Q&A on how to do exactly what you want, titled: Convert PEM to PPK file format. excerpt Download your .pem from AWS Open PuTTYgen, select Type of key to generate as: SSH-2 RSA Click "Load" on the right side about 3/4 down Set the file type to *.* Browse to, and Open your .pem file PuTTY will auto-detect everything it needs, ...


21

There is. From inside the instance, you can run: curl http://169.254.169.254/latest/meta-data/public-ipv4 To get the public DNS hostname, you can change that to: curl http://169.254.169.254/latest/meta-data/public-hostname You can get the private IP for the instance, too: curl http://169.254.169.254/latest/meta-data/local-ipv4 As a side note, you ...


12

Could you try this chown -R ftpusername /var/www/html


10

Both if possible, just in case. Security groups are good because they are external to your host so the data never reach's you. They are not quite as configurable as most server based firewalls though. Unfortunately, EC2 security groups can only "allow" services through a default deny policy. So if you are trying to block access to a publicly "allowed" ...


10

There are two likely reasons that this could happen -- you do not have write and execute permissions on the directories leading to the directory you are trying to upload to, or vsftpd is configured not to allow you to upload. In the former case, use chmod and chown as appropriate to make sure that your user has these permissions on every intermediate ...


9

It's a Xen device. See e.g. Xen on Debian wiki


9

If you are using GNU/Linux, you don't have to use Putty. That part of the tutorial is geared towards Windows users. Just set your .pem file permissions to r-- by doing chmod 400 mykey.pem then you can pass it straight to ssh : ssh -i mykey.pem user@aws-host.amazon.com


7

EC2 instances use an internal 10.X.X.X address (or other address if using a VPC), and traffic to their 'public' IP address is simply re-routed to the internal IP address. EC2 instances also use a different DNS server that is not publicly accessible. When you resolve the hostname of the other EC2 instance, because you're inside the AWS network, it gives you ...


6

The /sys directory is generally where the sysfs filestystem is mounted, which contains information about devices and other kernel information. The files in /sys/block contain information about block devices on your system. Your local system has a block device named sda, so /sys/block/sda exists. Your Amazon instance has a device named xvda, so ...


6

I also have this issue on Xen 4.2 with 3.6 and 3.8 Kernel (AlpineLinux). I googled around and by adding clocksource=jiffies to my kernel i fixed it. Instead of jiffies you could also try "pit". There are also reports of disabling C-states in the BIOS.


5

ZFS on Linux does not have a critical mass following, whatever that may be. ZFS will effectively lock you in. The underlying format is incompatible with rescue disks, and distributions for which you will find ZFS is rare. I would tend to overlook these limits due to my bias towards ZFS. You may want to google for a service provider that provides ...


5

/dev/xvde is a xen virtual disk, and /dev/xvde1 and /dev/xvde2 are partitions on that virtual disk. On the Xen host (the dom0), /dev/xvde could be a raw disk or disk partition, an LVM volume, a disk image file, an iscsi disk or something else. From your VM's POV, that's completely irrelevant - just treat it the same as any other disk. It just happens to ...


5

The command ftp put /path/to/local_file doesn't work with vsftpd. Try the following: ftp put /path/to/local_file remote_file_name You may choose any name you wish for the remote_file_name, but you must specify one.


5

Ubuntu's Wiki As @Hippo mentioned you can look at the LTS page which has this chart: Wikipedia Page Also wikipedia has a nice chart: Ubuntu EC2 List Finally, Ubuntu provides a directory of their EC2 images: http://uec-images.ubuntu.com/releases/ And a list of official Ubuntu AMI images: http://cloud.ubuntu.com/ami/


4

grep -q xfs /proc/filesystems || sudo modprobe xfs /proc/filesystems lists all the filesystems that your kernel knows about. (Try cat /proc/filesystems to see. In the resulting list, nodev indicates that the filesystem does not expect an associated block device.) So grep -q xfs /proc/filesystems is checking to see if your kernel knows about XFS. (The ...


4

The simplest way of stopping the traffic is (assuming VPC is being used) by adding it to the VPC Network ACL of that instance and denying all traffic from that IP Address. One thing to remember is the deny rule number should be less than the first rule number.


4

Yes, it is. A boot loader is not necessary at all. The kernel can load itself, given that the flexibility that a boot manager like grub provides, is not necessary. The bzImage contains all the code needed to boot: Source: Wikipedia For the linux kernel from 3.3 onwards this also works for UEFI systems. This special boot loader is called efi stub. Fedora ...


4

Amazon AMIs boot from an amazon kernel in their EC2 virtual machines, so they don't strictly need a bootloader. You can boot a paravirtualized kernel, as described in their documentation.


4

Using sudo I think you need to find out what interface is being used for your network and then just tell tshark about it. Example Network devices present on my box. $ ip addr|grep '^[0-9]'|awk '{print $2}' lo: eth0: wlan0: Run tshark: $ sudo tshark -i wlan0 | head -5 ..start seeing output from tshark... Using capabilities The Amazon AMI instances ...


3

To quote from the sshd_config manpage: AllowUsers This keyword can be followed by a list of user name patterns, separated by spaces. If specified, login is allowed only for user names that match one of the patterns. With this setting, the only user you can log in as is the one you specificed on the ...


3

Do this command to track those files down when an RPM is installed: $ rpm -ql openvpn and see where those files might actually be. For packages that haven't been installed yet you can query the yum repository using the command repoquery: $ repoquery -l openvpn Different distros put files in different locations. Though on my Fedora system the ...


3

According to Fedora Wiki, Fedora 8 is unsupported since 2009. Most packages are outdated, for example Bash, in Fedora 8 it's 3.2 and in modern distros, it's 4.2. Full list of packages in Fedora 8 is located here. And is it safe? Well, it depends on software running on your servers. I can suppose that devs had eliminated a large number of bugs in for example ...


3

I could not find an official build for EC2. The closes thing is likely going to be the Pygoscelis Papua Linux distro. Dowd and Associates is offering Pygoscelis Papua Linux. Pygoscelis Papua Linux is an unofficial build of Gentoo Linux for Amazon EC2. You can also peruse the Cloud Market list of images available. The Cloud Market Gentoo Images If ...


3

Both files contain the statistics of the first partition (/sys/block/sda1/stat) of the first device (/sys/block/sda1/stat) found by a particular driver or subsystem. The difference is the driver. Your amazon VM is using the Xen driver (/sys/block/xvda1/stat). Your local machine is using the SCSI driver (/sys/block/sda1/stat). xvd = Xen Virtual Disk sd ...


3

Yes. It is possible using pam_ssh_agent_auth package if your distribution provides. It can allow you to execute sudo based on pam module, which checks possession of ssh key in ssh-agent. Short story long Setup Install pam_ssh_agent_auth package from package manager Modify /etc/sudoers, preferably using visudo and add line Defaults env_keep += ...


3

A virtual Red Hat installation probably doesn't have any serial ports connected (which is what /dev/ttyS0 is: COM1 in DOS parlance), so trying to start agetty to listen to the serial port is doomed to fail. Find the line in /etc/inittab that contains agetty and ttyS0 and change respawn to off. EDIT: In case the system is using upstart, as in redhat 6, do ...


3

There is a patch released for Ubuntu14.04 https://gist.github.com/cdgraff/1c31727901e5c76d5ea8 I can confirm it's working: root@ip-172-31-119-53:~# modinfo ixgbevf filename: /lib/modules/3.13.0-45-generic/updates/dkms/ixgbevf.ko version: 2.16.1 license: GPL description: Intel(R) 10 Gigabit Virtual Function Network Driver author: ...


3

Under Normal circumstances System Administrators make SWAP either 1x or 2x memory. In your case I don't know if this will apply or even suffice. Without having details of what you are running it is very difficult to know what would be the appropriate site of SWAP but in general whatever you run if it is swapped out to disk you will get performance ...


3

Did you manage to resolve your ssh issue to your ec2 instance? I also encountered ssh login issues while setting up my first ec2 instance. Here was how I resolved my ssh login issue: with your instance's security group, set your inbound SSH rule's Source IP to 0.0.0.0/0 first, and make sure you can get a working connection with this setting. Once you ...


3

Login to mysql mysql -u root -p Then execute: flush-privileges; If this doesn't work try: FLUSH PRIVILEGES; http://dev.mysql.com/doc/refman/5.0/en/server-options.html http://dev.mysql.com/doc/refman/5.0/en/mysqladmin.html



Only top voted, non community-wiki answers of a minimum length are eligible