Can I SSH to Local Weblogic AdminServer via Command Line? - ssh

From Eclipse, when I startup my local Oracle Weblogic Server 12c to run my web application locally, I can visit the Weblogic AdminServer Console at localhost:7001/console. However is there way I can login to the AdminServer via putty with a Command Line interface?
What would my hostname or IP address be for the login, and my port would be 22? Then I would expect to use the same username and password I use to login to the Server console GUI.

The Weblogic admin console does not listen on SSH protocol, the best you can do is log in to the local server where Weblogic is running, and access the scripting tool, via something like the following
wlst.sh
connect('weblogic','password','t3://localhost:7001');
And then run commands that Weblogic understands. The username and password you would have set up during installation. You can also invoke it from the command line via Java, as shown in the following tutorial.
Weblogic Scripting Tool tutorial

Related

TFS SSH task in Windows Machine failed

I tried to connect a Windows machine that exist in another domain than our TFS 2018.3 exist.
I added "SSH" task, and I created new SSH endpoint with the remote machine IP, username and password, without a private key. I configured in the remote machine access of SSH for this username & password.
In the SSH task, I configure a simple shell command: ls.
The TFS agent succeeded to connect the machine but failed with this error:
Unable to execute command or shell on remote system: Failed to Execute process.
Full log:
2019-08-15T13:22:54.1491966Z Trying to setup SSH connection to ********#myserverinanotherdomain:22
2019-08-15T13:22:54.4085564Z Successfully connected.
2019-08-15T13:22:54.8120684Z tr -d '\015' <"./sshscript_1565875374136" > "./sshscript_1565875374136._unix"
2019-08-15T13:22:54.8121422Z Unable to execute command or shell on remote system: Failed to Execute process.
2019-08-15T13:22:54.8121745Z
2019-08-15T13:22:54.8180230Z ##[error]Command tr -d '\015' <"./sshscript_1565875374136" > "./sshscript_1565875374136._unix" exited with code 4294967295.
I think because it's a Windows machine and I try to execute a shell script. If I will install Git bash, for example, it can help?
Does the SSh task support only Linux machines? if yes, how can I connect a machine that exists in another domain?
SSH being a communication protocol is agnostic of OS. It is not Linux specific. But there seems to be a limitation for using SSH task on windows machine/build agent. Take a look at this similar question here: Not able to run bash script from windows using vsts.
I haven't found a documentation that clearly declare the SSh task not support on Windows machine. But I have found a task which also uses SSH--Copy Files Over SSH task. And according to the Q&A in official link:
Is this task supported for target machines running operating systems
other than Linux?
This task is intended for target machines running Linux.
For copying files to a macOS machine, this task may be used, but authenticating with a password is not supported.
For copying files to a Windows machine, consider using Windows Machine File Copy.
Instead of SSH. You should be able to use a local account on the build server and when entering the credentials. The account must have the same password as the account in the other domain. In other works make sure build account which run on the build agent are able to connect another domain.
Also make sure there is a trust relationship between the domains.

IBM mfpdev CLI v8.0 issue in "mfpdev server add" in development environment

I tried below commands to add a server and run on console. Please help me to add and start the server successfully and open the console in the browser.
Pratimas-Mac-mini:~ pratima$ mfpdev server add devconsole -u http://192.168.1.144:10081 -l admin -p admin -c myapp -s
Verifying server configuration...
Cannot connect to server 'devconsole' at 'http://192.168.1.144:10081'.
Missing runtime configuration details.: connect ECONNREFUSED 192.168.1.144:10081
Server profile 'devconsole' added successfully.
Pratimas-Mac-mini:~ pratima$ mfpdev server console devconsole
Opening console for server 'devconsole'
It got opened in the browser
http://192.168.1.144:10081/mfpconsole/index.html#/dashboard&login=admin&password=admin
"This site can't be reached"
i read and followed the below link as well, still no luck.
https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/using-mobilefirst-cli-to-manage-mobilefirst-artifacts/#managing-mobilefirst-server-instances
Please let me know if i am missing something in the process
It seems to be your server is not running on Port 10081 which you can verify by running http://192.168.1.144:10081/mfpconsole in browser.
Usually MFP 8.0 Server's runs on Port 9080 by default. Kindly verify on which port your MFP server is running before adding the server profile via MFPDev CLI.

Cannot login as admin after fresh ApacheDS instal

I have downloaded the newest version of ApacheDS for Windows (2.0.0-M23).
After the installation on Windows7 Pro, with Java 1.8 u101 64 bit
which passed without any errors I tried to make a new connection from Eclipse, LDAP perspective from Apache DS Studio plugin, but cannot login as uid=admin,ou=system with a default password (secret), which should work for initial login.
I am using default localhost with port 389.
I get the error:
The authentication failed
- Cannot connect to the server: Connection refused: no further information
- No connection
I tried to point for Java1.7 at the installation with the same result.
Also tried to login from JXplorer.
Would you have any hints?
ApacheDS uses port 10389 right out of the box.
You can always make sure using the netstat tool.
You can change the port number from Apache Directory Studio using "Open Configuration" from the connection menu.

How to connect to remote server in Aptana Studio 3

I have following web server configuration
OS: Ubuntu 12.04
Web Server: Apache 2.2.22
PHP: PHP 5.3.10-1ubuntu3.21
MySQL: 5.5.47
Virtual Host for web project 'MyWebSiteName001' is created in Apache server using Webmin.
'user001' is created under User Accounts and has Administrative privileges.
I have successfully installed Aptana Studio 3 on my computer. I also created new web project named 'MyWebSiteName001'. Now when I go to Create New Connections' option and try to connect to remove server project in FTP mode using user001/password, it is giving below error.
establishing ftp connection failed connection: refused connection
So I am not sure what I am missing or wrong I am doing and thus I am not able to connect to remote server. So please let me know how can I resolve this issue?
You have to create a ftp account first and then configure Aptana using this acconunt.
If you are using FileZilla Edit-->Users (here configure user, password, folders and permissions).
Hope this helps.

Run a command as remote user ID in a web server

I have a web application running on Tomcat7 and apache Httpd server. I have a use case to run a command as remote or client user on the web server whose user account is different from remote user accounts. Currently I am handing this requirement by running web server as root user and allowing root user to sudo as remote user for executing the commands on server side.
Please let me know if you have any better and secure ways to handle this.
Thanks.