putty

What are some common HDFS commands that can be mapped in the bash files?

只愿长相守 提交于 2020-01-05 05:54:54
问题 I am relatively new to Hadoop and I have been using HDFS CLI a lot. Commands like hdfs dfs -ls are becoming redundant to type. Is it possible to create an alias to this command (i.e., h -ls ) in either the .bashrc or .bash_profile files? Are there any other useful commands that I can map here? 回答1: The good practice is to put aliases in .bash_aliases . For your problem, I'd put alias h="hdfs dfs" in my .bash_aliases file (create it if it doesn't exist) Most distribs will already have this in

What are some common HDFS commands that can be mapped in the bash files?

妖精的绣舞 提交于 2020-01-05 05:54:27
问题 I am relatively new to Hadoop and I have been using HDFS CLI a lot. Commands like hdfs dfs -ls are becoming redundant to type. Is it possible to create an alias to this command (i.e., h -ls ) in either the .bashrc or .bash_profile files? Are there any other useful commands that I can map here? 回答1: The good practice is to put aliases in .bash_aliases . For your problem, I'd put alias h="hdfs dfs" in my .bash_aliases file (create it if it doesn't exist) Most distribs will already have this in

cron command to execute a php script periodically

 ̄綄美尐妖づ 提交于 2020-01-03 05:10:25
问题 I am using Ubuntu. Earlier I used to run cron jobs from GUI. I have created a php script and saved it on my server. i tried to execute cron from putty, 5 * * * * path/folder/sample.php // script runs for every 5 mins But it doesn't work. Am I in the right direction? Actually, where should be the command get executed dynamically? 回答1: The most sure way is specify path to your interpreter. You should also change 5 to */5 (which mean run every five minutes nor than run at 5 minutes past each

Unable to run shell script with ktutil command from Windows using PLINK

巧了我就是萌 提交于 2020-01-03 00:27:32
问题 I have a small shell script test.sh in Unix with the following content: cd /usr/kerberos/sbin echo l | ktutil echo quit | ktutil Its running fine in Unix and giving the output of ktutil . However when I run from Windows using the PLINK.EXE of PuTTY, its not running the ktutil command properly. The output it gives is the usage of ktutil . Usage: ktutil [-hv] [--version] [--help] [--keytab=keytab to operate on] [-k keytab to operate on] [--verbose] command -k keytab to operate on, --keytab

How to pass argument to PuTTY commands file

好久不见. 提交于 2020-01-01 14:09:55
问题 I have a batch file that starts PuTTY and executes commands listed in a text file. I want to be able to pass in parameters to the text file that has my commands to be run on the remote server. This is what I currently have - start C:\Users\putty.exe -load "server" -l userID -pw Password -m commands.txt Is there a way to pass for example a version number as an argument to the commands.txt file? 回答1: You have to generate the commands.txt on the fly: set PARAMETER=parameter echo ./myscript.sh

How to pass argument to PuTTY commands file

被刻印的时光 ゝ 提交于 2020-01-01 14:09:04
问题 I have a batch file that starts PuTTY and executes commands listed in a text file. I want to be able to pass in parameters to the text file that has my commands to be run on the remote server. This is what I currently have - start C:\Users\putty.exe -load "server" -l userID -pw Password -m commands.txt Is there a way to pass for example a version number as an argument to the commands.txt file? 回答1: You have to generate the commands.txt on the fly: set PARAMETER=parameter echo ./myscript.sh

How to solve putty network error permission denied

99封情书 提交于 2020-01-01 10:03:34
问题 I have used putty.exe for ssh client. But putty.exe is not working for 64 bit win os. It works perfectly 32 bit win os. ques: Am i making some mistakes. if so pls help? Is there any app which works on both 32 and 64 machine for win os? Is there any cmd commands to connect ssh? info: Putty.exe ver 0.63.10125.0 . Run as administrator used no use. firewall disabled no use. putty.exe runes in separate drive no use. Error: Network error: Permission denied 回答1: Oh I found the solution for this

SSH connection to Ubuntu open SSH-server requires login on (physical) server via password first [closed]

戏子无情 提交于 2019-12-31 04:13:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Heyho, I have a kind of weird problem with an ubuntu server that runs open ssh-server. Everything configuration wise is working except for one thing. I cannot connect via putty with my .ppk key to the server, right after it booted. I get a "server refused our key". Since the thing is currently running in Virtual

Connection refused on new EC2 Instance putty

时光怂恿深爱的人放手 提交于 2019-12-31 03:02:19
问题 I've created an instance of a server on EC2 based on an AMI generated from an existing server. All goes well during the create, and I specify the same key for the new server as the old. However, when I try to connect to the new server via putty, I get a "connection refused" message. Also, I'm unable to ping to the public address, although I selected the "default" group which allows ICMP. The server status is "running". Any ideas why I can't connect? Note that an nmap probe gives this output:

Connection refused on new EC2 Instance putty

倾然丶 夕夏残阳落幕 提交于 2019-12-31 03:02:01
问题 I've created an instance of a server on EC2 based on an AMI generated from an existing server. All goes well during the create, and I specify the same key for the new server as the old. However, when I try to connect to the new server via putty, I get a "connection refused" message. Also, I'm unable to ping to the public address, although I selected the "default" group which allows ICMP. The server status is "running". Any ideas why I can't connect? Note that an nmap probe gives this output: