<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Login Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/login/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/login/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:33:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Login with Google in Laravel 5.8</title>
		<link>https://www.scmgalaxy.com/tutorials/login-with-google-in-laravel-5-8/</link>
					<comments>https://www.scmgalaxy.com/tutorials/login-with-google-in-laravel-5-8/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Sat, 17 Apr 2021 12:25:06 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Websites]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Php]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=5937</guid>

					<description><![CDATA[<p>In this tutorial I’m going to describe how to login with google in laravel 5.8 in easy way please follow [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/login-with-google-in-laravel-5-8/">Login with Google in Laravel 5.8</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph" id="c45b">In this tutorial I’m going to describe how to login with google in laravel 5.8 in easy way please follow some easy steps mentioned below.</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/600/1*7GYVt5QyW1J9jFE8F2AMUQ.jpeg" alt=""/></figure>



<pre class="wp-block-preformatted">composer create-project laravel/laravel laravel-amit "5.8"</pre>



<p class="wp-block-paragraph" id="f859">Step 2-&gt; Go to .env and set up connect with database<br><br>DB_HOST=127.0.0.1<br>DB_PORT=3306<br>DB_DATABASE=laravelamit<br>DB_USERNAME=root<br>DB_PASSWORD=</p>



<p class="wp-block-paragraph" id="9402">3rd step migrate table</p>



<pre class="wp-block-preformatted">php artisan migrate</pre>



<p class="wp-block-paragraph" id="071e">Let’s go to create authentication and run below command</p>



<pre class="wp-block-preformatted">php artisan make:auth</pre>



<p class="wp-block-paragraph" id="2b84">go to composer.json and paste this version</p>



<p class="wp-block-paragraph" id="e2ca">“laravel/socialite”: “4.4.1”,</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1022/1*3FTcZKSnYg6OK27-t2Bfkw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="70b5">Now update composer</p>



<pre class="wp-block-preformatted">composer update</pre>



<p class="wp-block-paragraph" id="a4ac">add provider in config/app.php file</p>



<pre class="wp-block-preformatted">Laravel\Socialite\SocialiteServiceProvider::class,</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/999/1*KMNO6lHkv93Lo4oJnc3HnQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="adfd">add alias in config/app.php</p>



<pre class="wp-block-preformatted">'socialite' =&gt; Laravel\Socialite\Facades\Socialite::class,</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/928/1*5tz8yQvlQ8h73DT69gHwAg.png" alt=""/></figure>



<p class="wp-block-paragraph" id="7d5e">Next create google App credentials here </p>



<p class="wp-block-paragraph">if you don&#8217;t have google app account then you can create from here : <a rel="noreferrer noopener" target="_blank" href="http://console.developers.google.com/">Google Developers Console</a>.</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1027/1*a6ZTXJDYedCnpmqypQg9mg.png" alt=""/></figure>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/808/1*aiTVnxd5HGOgdlBzg36WHw.png" alt=""/></figure>



<p class="wp-block-paragraph" id="e792">Go to services.php and put your client id and client secret and callback url</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1198/1*VNaI3qP7HThwlXctYSiHeA.png" alt=""/></figure>



<pre class="wp-block-preformatted">php artisan make:model SocialProvider -m</pre>



<p class="wp-block-paragraph" id="5817">customize migration social_providers</p>



<pre class="wp-block-preformatted">$table-&gt;increments('id');<br>$table-&gt;integer('user_id')-&gt;unsigned()-&gt;references('id')-&gt;on('users');<br>$table-&gt;string('provider_id');<br>$table-&gt;string('provider');<br>$table-&gt;timestamps();</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1184/1*-Teyy9H6ndrlKngVmm_RQg.png" alt=""/></figure>



<pre class="wp-block-preformatted">php artisan migrate</pre>



<p class="wp-block-paragraph" id="c7e1">add&nbsp;socialProviders() function in user model</p>



<p class="wp-block-paragraph" id="7337">go to register controller and paste this code</p>



<pre class="wp-block-preformatted">&lt;?php<br><br>namespace App\Http\Controllers\Auth;<br><br>use App\User;<br>use Socialite;<br>use App\SocialProvider;<br>use App\Http\Controllers\Controller;<br>use Illuminate\Support\Facades\Hash;<br>use Illuminate\Support\Facades\Validator;<br>use Illuminate\Foundation\Auth\RegistersUsers;<br><br>class RegisterController extends Controller<br>{<br>    /*<br>    |--------------------------------------------------------------------------<br>    | Register Controller<br>    |--------------------------------------------------------------------------<br>    |<br>    | This controller handles the registration of new users as well as their<br>    | validation and creation. By default this controller uses a trait to<br>    | provide this functionality without requiring any additional code.<br>    |<br>    */<br><br>    use RegistersUsers;<br><br>    /**<br>     * Where to redirect users after registration.<br>     *<br>     * @var string<br>     */<br>    protected $redirectTo = '/home';<br><br>    /**<br>     * Create a new controller instance.<br>     *<br>     * @return void<br>     */<br>    public function __construct()<br>    {<br>        $this-&gt;middleware('guest');<br>    }<br><br>    /**<br>     * Get a validator for an incoming registration request.<br>     *<br>     * @param  array  $data<br>     * @return \Illuminate\Contracts\Validation\Validator<br>     */<br>    protected function validator(array $data)<br>    {<br>        return Validator::make($data, [<br>            'name' =&gt; ['required', 'string', 'max:255'],<br>            'email' =&gt; ['required', 'string', 'email', 'max:255', 'unique:users'],<br>            'password' =&gt; ['required', 'string', 'min:8', 'confirmed'],<br>        ]);<br>    }<br><br>    /**<br>     * Create a new user instance after a valid registration.<br>     *<br>     * @param  array  $data<br>     * @return \App\User<br>     */<br>    protected function create(array $data)<br>    {<br>        return User::create([<br>            'name' =&gt; $data['name'],<br>            'email' =&gt; $data['email'],<br>            'password' =&gt; Hash::make($data['password']),<br>        ]);<br>    }<br><br>    public function redirectToProvider()<br>    {<br>        return Socialite::driver('google')-&gt;redirect();<br>    }<br>    <br>    // add handleProviderCallback() function in RegisterController<br>    <br>    public function handleProviderCallback()<br>        {<br>            try<br>            {<br>                $socialUser = Socialite::driver('google')-&gt;user();<br>            }<br>            catch(\Exception $e)<br>            {<br>                return redirect('/');<br>            }<br>            //check if we have logged provider<br>            $socialProvider = SocialProvider::where('provider_id',$socialUser-&gt;getId())-&gt;first();<br>            if(!$socialProvider)<br>            {<br>                //create a new user and provider<br>                $user = User::firstOrCreate(<br>                    ['email' =&gt; $socialUser-&gt;getEmail()],<br>                    ['name' =&gt; $socialUser-&gt;getName()]<br>                );<br>    <br>                $user-&gt;socialProviders()-&gt;create(<br>                    ['provider_id' =&gt; $socialUser-&gt;getId(), 'provider' =&gt; 'google']<br>                );<br>    <br>            }<br>            else<br>                $user = $socialProvider-&gt;user;<br>    <br>            auth()-&gt;login($user);<br>    <br>            return redirect('/home');<br>    <br>        }<br><br><br>}</pre>



<p class="wp-block-paragraph" id="6586">add routes in web.php</p>



<pre class="wp-block-preformatted">Auth::routes();<br><br>Route::get('/home', 'HomeController@index')-&gt;name('home');<br><br>Route::get('auth/google', 'Auth\RegisterController@redirectToProvider');<br>Route::get('auth/google/callback', 'Auth\RegisterController@handleProviderCallback');</pre>



<p class="wp-block-paragraph" id="0007">Lets got to User.php and add this function below</p>



<pre class="wp-block-preformatted">function socialProviders()<br>    {<br>        return $this-&gt;hasMany(SocialProvider::class);<br>    }</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1356/1*g0ov73T61PcnKFAkXqLEnQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="6d1c">Next go to SocialProvider.php and this function</p>



<pre class="wp-block-preformatted">protected $fillable = ['provider_id','provider'];<br><br><br>     function user()<br>    {<br>        return $this-&gt;belongsTo(User::class);<br>    }</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1246/1*XTv_oHSPFbd820cK6XeXRQ.png" alt=""/></figure>



<p class="wp-block-paragraph" id="3058">Add Login with google Button On Blade File</p>



<pre class="wp-block-preformatted">&lt;button class="btn btn-primary"&gt;<br>       &lt;a class="text-white" href="{{ url('auth/google')}}"&gt;Google Login&lt;/a&gt;<br>&lt;/button&gt;</pre>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1357/1*TNMGVPjnjSTkRxld5hG-nA.png" alt=""/></figure>



<p class="wp-block-paragraph" id="3ccd">Now login page look like this and continue with google</p>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1345/1*0TlCOHOVcx_jsYJwSDHvHA.png" alt=""/></figure>



<figure class="wp-block-image"><img decoding="async" src="https://miro.medium.com/max/1277/1*Xc0dZ2ULxfBYdeWCJxHulg.png" alt=""/></figure>



<p class="wp-block-paragraph" id="bb9c">I hope this tutorial is very helpful for you, if code is not working properway please comment below thanks for reach out. <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f64f.png" alt="🙏" class="wp-smiley" style="height: 1em; max-height: 1em;" /><img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f64f.png" alt="🙏" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/login-with-google-in-laravel-5-8/">Login with Google in Laravel 5.8</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/login-with-google-in-laravel-5-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Create Multiple Role Based Authentication in Laravel 5.8</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-create-multiple-role-based-authentication-in-laravel-5-8/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-create-multiple-role-based-authentication-in-laravel-5-8/#respond</comments>
		
		<dc:creator><![CDATA[Joydeep M]]></dc:creator>
		<pubDate>Fri, 16 Apr 2021 07:22:26 +0000</pubDate>
				<category><![CDATA[Laravel]]></category>
		<category><![CDATA[laravel]]></category>
		<category><![CDATA[laravel project]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[logout]]></category>
		<category><![CDATA[multi authentication]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=5893</guid>

					<description><![CDATA[<p>In this tutorial we will see how we can create a basic multiple role based authentication page by using Laravel. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-create-multiple-role-based-authentication-in-laravel-5-8/">How to Create Multiple Role Based Authentication in Laravel 5.8</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In this tutorial we will see how we can create a basic multiple role based authentication page by using Laravel. To understand it we should have more than basic understandings of Laravel.</p>



<ul class="wp-block-list"><li>To start it as we all know we have to create a project (xampp/htdocs directory) in our terminal by running the command given below:</li></ul>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">composer create-project --prefer-dist laravel/laravel multi-auth "5.8.*"</span></code></pre>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">cd multi-auth</span></code></pre>



<ul class="wp-block-list"><li>Once we have created the project we will run the make:auth command to create the default login authentication system of laravel.</li></ul>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">php artisan make:auth</span></code></pre>



<ul class="wp-block-list"><li>Now we need to customize the users_table under migration as per our requirement.</li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/5c679518c74fda9d6c42f325145aa6c5.js"></script>



<ul class="wp-block-list"><li>Now we have to create model and migration for role table where we can see the different roles who can login like &#8216;admin&#8217;, &#8216;user&#8217; etc.</li></ul>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">php artisan make:model Role -m
</span></code></pre>



<ul class="wp-block-list"><li>In the roles table we will customize the Schemas as per the requirement.</li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/840aaae005b136e252fd7aa715433d83.js"></script>



<ul class="wp-block-list"><li>So now we have two model naming Users and Roles and both are dependent on each other hence we need to make a relationship between them.</li><li>To create a relationship we will create functions in both the model for the other one by giving the command given below.</li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/33ec12e64aaff627178188a7db5fe3c2.js"></script>



<script src="https://gist.github.com/Joydeep-cotocus/5aa63d070c5f06e585eff7146eb48fe8.js"></script>



<ul class="wp-block-list"><li>In the next step we need to create seeders for each of the model (User , Role). To create the UsersTableseeder and</li></ul>



<p class="wp-block-paragraph">RolesTableSeeder we will run the command given below.</p>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">php artisan make:seed UsersTableSeeder
php artisan make:seed RolesTableSeeder</span></code></pre>



<ul class="wp-block-list"><li>After the following step we need to add<strong> insert</strong> function in the <strong>UsersTableseeder</strong> and <strong>RolesTableSeeder</strong> and also declare the<strong> use Illuminate\Support\Facades\DB;</strong> in both the seeders in the beginning since we will be using DB class in the seeders.</li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/9b4ae503abedb52bffbd0d0d3f50f1f4.js"></script>



<script src="https://gist.github.com/Joydeep-cotocus/a39049e4507a74a9e1af5086278ea1c9.js"></script>



<ul class="wp-block-list"><li>Once we are done with the steps given above we will create a database and link it with the project in the .env file. In this project I have named the database as <strong>corona </strong>(since it is in trend <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f61b.png" alt="😛" class="wp-smiley" style="height: 1em; max-height: 1em;" />) and added that in my .env file as shown below, with that we will keep the username as <strong>root</strong> and leave the password blank.</li></ul>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="604" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/env-1024x604.jpg" alt="" class="wp-image-5894" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/env-1024x604.jpg 1024w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/env-300x177.jpg 300w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/env-768x453.jpg 768w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/04/env.jpg 1201w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list"><li>Once done with the database creation we will migrate our tables into the database with the command given below.</li></ul>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">php artisan migrate</span></code></pre>



<ul class="wp-block-list"><li>In the next step we need to define two created seeders files (UsersTableSeeder and RolesTableSeeder) into the DatabaseSeeder.php as shown below:</li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/04883a7777df6cdd2b184a82e7b0788c.js"></script>



<ul class="wp-block-list"><li>Now we need to import our data stored in the Seeder files into the database which we created using the command:</li></ul>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">php artisan db:seed</span></code></pre>



<ul class="wp-block-list"><li>Until here we have set up the database for storing the details which will be provided by the user and now we need to create the controllers and the middleware to authenticate and redirect the users to there respective pages.</li><li>First of all we need to create controller for User and the Admin.</li><li>To create the controller we need to the follow the command given below:</li></ul>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">php artisan make:controller Admin/AdminController</span>
<span class="has-inline-color has-vivid-red-color">php artisan make:controller User/UserController</span></code></pre>



<ul class="wp-block-list"><li>Now we will be creating middleware for the authentication of the Admin and the User.</li></ul>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">php artisan make:middleware AdminMiddleware
php artisan make:middleware UserMiddleware</span>
</code></pre>



<ul class="wp-block-list"><li>Now we will add Auth trait in the AdminMiddleware and UserMiddleware for authentication of the User and the Admin by writing <strong>use Auth;</strong></li><li>In the next step we will add <strong>handle() </strong>function in the AdminMiddleware and UserMiddleware.</li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/7725e51cf1bdd0dcaf413969a858f312.js"></script>



<script src="https://gist.github.com/Joydeep-cotocus/d6bf8d1a3b0aad0ab11530d0c1eed33f.js"></script>



<ul class="wp-block-list"><li>We will also implement Condition for <strong>Admin </strong>and <strong>User</strong> Login in <strong>RedirectIfAuthenticated </strong>which is in <strong>app/Http/Middleware/RedirectIfAuthenticated.php</strong>.</li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/7b9d1f429963d00a585f382596d8dc70.js"></script>



<ul class="wp-block-list"><li>Now we will be implementing condition in the login controller before that we will remove <strong>‘/home’</strong>&nbsp;from protected&nbsp;<strong>$redirectTo = ‘/home’;</strong> since we don&#8217;t want to redirect the page to <strong>Home</strong> after logging in.</li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/17bb714a11deae02aa4965c7a6784023.js"></script>



<ul class="wp-block-list"><li>Likewise we will implement condition in the <strong>ResetPasswordController </strong>and remove <strong>‘/home’</strong>&nbsp;from protected&nbsp;<strong>$redirectTo = ‘/home’</strong>;</li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/d8c4f8af61d240945a32fa91df71ec5c.js"></script>



<ul class="wp-block-list"><li>Once we are done with the above steps we will use AdminMiddleware and UserMiddleware in Kernal.php which is in <strong>app/Http/Kernel.php</strong>.</li></ul>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">use App\Http\Middleware\AdminMiddleware;
use App\Http\Middleware\UserMiddleware;</span></code></pre>



<ul class="wp-block-list"><li>After that we need to define and for defining we will add the command given below in routeMiddleware.</li></ul>



<pre class="wp-block-code"><code><span class="has-inline-color has-vivid-red-color">'admin' =&gt; AdminMiddleware::class,
'user' =&gt; UserMiddleware::class,</span></code></pre>



<ul class="wp-block-list"><li>Now we are almost done with it and need to write the routes for the Admin and the User. </li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/7061dc124e2421b0da98f6792c05e605.js"></script>



<ul class="wp-block-list"><li>Almost done but we need to make the views as well where we can redirect the admin or user once they login.</li></ul>



<p class="wp-block-paragraph">-Create a blade file for Admin dashboard under <strong>resource/views/admin/dashboard.blade.php</strong>.</p>



<p class="wp-block-paragraph">-Create a blade file for User dashboard under <strong>resource/views/user/dashboard.blade.php.</strong></p>



<ul class="wp-block-list"><li>Under the dashboard blades of User and Admin we can write the basic HTML to check whether it is showing it when redirected.</li></ul>



<script src="https://gist.github.com/Joydeep-cotocus/97649d356909a595ee46abe0c281bc3f.js"></script>



<script src="https://gist.github.com/Joydeep-cotocus/773d46c474372fea7049d21c6051d3a6.js"></script>



<p class="wp-block-paragraph"><strong>It&#8217;s good to go now. You can leave a comment if getting any error while following the steps.</strong></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-create-multiple-role-based-authentication-in-laravel-5-8/">How to Create Multiple Role Based Authentication in Laravel 5.8</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-create-multiple-role-based-authentication-in-laravel-5-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id</title>
		<link>https://www.scmgalaxy.com/tutorials/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/</link>
					<comments>https://www.scmgalaxy.com/tutorials/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Wed, 14 Oct 2015 11:10:37 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[Remote machine]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SSH Login]]></category>
		<category><![CDATA[SSH Login Without Password]]></category>
		<category><![CDATA[ssh-copy-id]]></category>
		<category><![CDATA[ssh-keygen]]></category>
		<category><![CDATA[Steps]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/10/14/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/</guid>

					<description><![CDATA[<p>Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id Step 1: Generate the keys &#62; ssh-keygen or &#62; [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/">Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img decoding="async" class="aligncenter wp-image-3069 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/ssh-login-without-password.png" alt="SSH Login Without Password" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/ssh-login-without-password.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/10/ssh-login-without-password-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></div>
<div><strong>Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id</strong></div>
<div></div>
<div><strong>Step 1: Generate the keys</strong></div>
<div>&gt; ssh-keygen</div>
<div>or</div>
<div>&gt; ssh-keygen -t rsa</div>
<div></div>
<div><strong>Step 2: Copy the public key to remote machine</strong></div>
<div>&gt; ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host</div>
<div>or</div>
<div>&gt; ssh-copy-id -i ~/.ssh/id_rsa.pub user@hostname.example.com</div>
<div></div>
<div>Alternatively, you can paste in the keys using SSH:</div>
<div>cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 &#8220;mkdir -p ~/.ssh &amp;&amp; cat &gt;&gt;  ~/.ssh/authorized_keys&#8221;</div>
<div></div>
<div><strong>Step 3: Login to remote machine</strong></div>
<div>&gt; ssh remote-host</div>
<div></div>
<div>If you have loaded keys to the ssh-agent using the ssh-add, then ssh-copy-id will get the keys from the ssh-agent to copy to the remote-host. i.e, it copies the keys provided by ssh-add -L command to the remote-host, when you don’t pass option -i to the ssh-copy-id.</div>
<div></div>
<div>&gt; ssh-add</div>
<div>&gt; ssh-add /Users/rajesh.kumar/.ssh/id_rsa</div>
<div></div>
<div><strong>Step 4: Optional Step Four—Disable the Password for Root Login</strong></div>
<div></div>
<div>&gt; sudo nano /etc/ssh/sshd_config</div>
<div>Put the changes into effect:</div>
<div>&gt; reload ssh</div>
<div></div>
<div>Within that file, find the line that includes PermitRootLogin and modify it to ensure that users can only connect with their SSH key:</div>
<div>&gt; PermitRootLogin without-password</div>
<div></div>
<div><strong>More Articles</strong></div>
<div><a href="http://community.scmgalaxy.com/blog/view/40844/how-to-scp-ssh-and-rsync-without-prompting-for-password-using-openssh">http://community.scmgalaxy.com/blog/view/40844/how-to-scp-ssh-and-rsync-without-prompting-for-password-using-openssh</a></div>
<div><a href="http://manpages.ubuntu.com/manpages/lucid/man1/ssh-copy-id.1.html">http://manpages.ubuntu.com/manpages/lucid/man1/ssh-copy-id.1.html</a></div>
<div>
<p><a href="Forum/34-shell-script/501-file-copying-and-transfer-between-two-machine.html">http://www.scmgalaxy.com/Forum/34-shell-script/501-file-copying-and-transfer-between-two-machine.html</a></p>
</div>
<div></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/">Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/steps-to-perform-ssh-login-without-password-using-ssh-keygen-and-ssh-copy-id/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Jenkins Command line Reference for login and trigger a job</title>
		<link>https://www.scmgalaxy.com/tutorials/jenkins-command-line-reference-for-login-and-trigger-a-job/</link>
					<comments>https://www.scmgalaxy.com/tutorials/jenkins-command-line-reference-for-login-and-trigger-a-job/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 05 Feb 2015 00:00:00 +0000</pubDate>
				<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[How to login in Jenkins]]></category>
		<category><![CDATA[How to trigger a job in Jenkins]]></category>
		<category><![CDATA[Jenkins Command line]]></category>
		<category><![CDATA[Jenkins Command line Guide]]></category>
		<category><![CDATA[Jenkins Command line Reference]]></category>
		<category><![CDATA[Jenkins Command line Tutorial]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Login Jenkins]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[Trigger]]></category>
		<category><![CDATA[Ways]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/02/05/jenkins-command-line-reference-for-login-and-trigger-a-job/</guid>

					<description><![CDATA[<p>Grep will return 0 while the build is running: $ curl http://myjenkins/job/myjob/lastBuild/api/json &#124; grep &#8211;color result\&#8221;:null $ echo $? Trigger [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/jenkins-command-line-reference-for-login-and-trigger-a-job/">Jenkins Command line Reference for login and trigger a job</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignnone size-full wp-image-3535 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/02/jenkins-command-line-refere.png" alt="jenkins-command-line-reference" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/02/jenkins-command-line-refere.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/02/jenkins-command-line-refere-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><b>Grep will return 0 while the build is running:</b></p>
<p>$ curl http://myjenkins/job/myjob/lastBuild/api/json | grep &#8211;color result\&#8221;:null</p>
<p>$ echo $?</p>
<p><strong>Trigger a Jenkins Job from command line</strong></p>
<p>$ wget http://yourserver/job/MyJobname/build?delay=0sec</p>
<p>$ wget -O &#8211; $HUDSON_URL/job/JOBNAME/build</p>
<p><strong>Trigger a Jenkins Job without authentication</strong></p>
<p>$ curl http://jenkins:8080/job/my%20job/build</p>
<p><strong>Trigger a Jenkins Job with authentication</strong></p>
<p>$ curl &#8211;user dbacher:$MY_API_TOKEN http://jenkins:8080/job/my%20job/build</p>
<p>$ curl &#8211;user &lt;your_jenkins_username&gt;:&lt;your_jenkins_API_key&gt; http://&lt;jenkins_server_url&gt;/job/&lt;your_jenkins_job_name&gt;/build</p>
<p><strong>Running commands against a secure Jenkins (basic auth or ssh keys)</strong></p>
<p>$ java -jar jenkins-cli.jar -s http://myjenkins help &#8211;username me &#8211;password mypassword</p>
<p>$ java -jar jenkins-cli.jar -s http://myjenkins help -i ~/.ssh/id_rsa</p>
<p><strong>Triggering a job build against a secure Jenkins (avoiding a 1.5 year old open bug!)</strong></p>
<p>$ java -jar jenkins-cli.jar -s http://myjenkins build &#8216;My Awesome Jenkins Job&#8217; -i ~/.ssh/id_rsa</p>
<p>$ java -jar jenkins-cli.jar -s http://myjenkins build &#8216;My Awesome Jenkins Job&#8217; -i ~/.ssh/id_rsa -s -v</p>
<p><strong>Passing parameters when triggering a job build</strong></p>
<p>$ java -jar jenkins-cli.jar -s http://myjenkins build &#8216;Deploy XYZ App&#8217; -i ~/.ssh/id_rsa -s -v -p target_env=api.cloudfoundry.com -p branch=master</p>
<p><strong>Reference</strong></p>
<p><a href="http://starkandwayne.com/articles/2013/04/12/jenkins-builds-from-cli/" target="_blank" rel="noopener">http://starkandwayne.com/articles/2013/04/12/jenkins-builds-from-cli/</a></p>
<p><a href="http://www.scmgalaxy.com/index.php?option=com_k2&amp;view=item&amp;id=890:ways-to-login-jenkins-using-command-line&amp;Itemid=120" target="_blank" rel="noopener">http://www.scmgalaxy.com/index.php?option=com_k2&amp;view=item&amp;id=890:ways-to-login-jenkins-using-command-line&amp;Itemid=120</a></p>
<p><strong>Appendix</strong></p>
<p>1. How to get your_jenkins_API_key?</p>
<ul>
<li>Login to your Jenkins.</li>
<li>Click on the username in the top right.</li>
<li>Click on Configure.</li>
<li>Click on ‘Show API Token’ button.</li>
<li>You got it.</li>
</ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/jenkins-command-line-reference-for-login-and-trigger-a-job/">Jenkins Command line Reference for login and trigger a job</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/jenkins-command-line-reference-for-login-and-trigger-a-job/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>What are the ways to Login Jenkins using Command line ?</title>
		<link>https://www.scmgalaxy.com/tutorials/ways-to-login-jenkins-using-command-line/</link>
					<comments>https://www.scmgalaxy.com/tutorials/ways-to-login-jenkins-using-command-line/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Tue, 27 May 2014 00:00:00 +0000</pubDate>
				<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[Commands for login in Jenkins]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Jenkins Guide]]></category>
		<category><![CDATA[Jenkins Login]]></category>
		<category><![CDATA[Jenkins login by command line]]></category>
		<category><![CDATA[Jenkins login through command line]]></category>
		<category><![CDATA[Jenkins Tutorial]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Login Jenkins]]></category>
		<category><![CDATA[Login Jenkins using Command line]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ways]]></category>
		<category><![CDATA[What]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2014/05/27/ways-to-login-jenkins-using-command-line/</guid>

					<description><![CDATA[<p>Ways to Login Jenkins using Command line &#38; Way to trigger Jenkins job using Command line or script Wget Note: [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ways-to-login-jenkins-using-command-line/">What are the ways to Login Jenkins using Command line ?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone wp-image-3719 size-full" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/05/jenkins-login-command-line.png" alt="login-jenkins-using-command-line" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/05/jenkins-login-command-line.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2014/05/jenkins-login-command-line-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Ways to Login Jenkins using Command line</strong></p>
<p><strong>&amp;</strong></p>
<p><strong>Way to trigger Jenkins job using Command line or script</strong></p>
<h3>Wget</h3>
<p>Note: If you are using wget 1.11, you might need to use the following options:</p>
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java"> wget --auth-no-challenge --http-user=user --http-password=apiToken http:<span class="code-comment">//jenkins.yourcompany.com/job/your_job/build?token=TOKEN</span></pre>
</div>
</div>
<p>With wget 1.10.x the following is enough (but will not work with 1.11.x) :</p>
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java"> wget http:<span class="code-comment">//user:apiToken@jenkins.yourcompany.com/job/your_job/build?token=TOKEN
</span></pre>
<p>ex &#8211; wget http://yourserver/job/MyJobname/build?delay=0sec</p>
<h3>CURL</h3>
<p><strong>Without authentication:</strong></p>
<p><code>$ curl http://jenkins:8080/job/my%20job/build [ HTML page saying "Authentication required" ] </code></p>
<p><strong>With authentication:</strong></p>
<p><code>$ curl --user dbacher:$MY_API_TOKEN http://jenkins:8080/job/my%20job/build [ returns nothing and the build starts ] </code></p>
<pre class="code-java">curl -X POST http://server/view/name/job/jobname/build?delay=0sec --user 1019352:61bb8531292794315f5dda8113548630</pre>
</div>
</div>
<p>Login Jenkins using groovy script or Perl Script or Java, please refer the reference page&#8230;</p>
<p><strong>Reference:</strong><br />
<a href="https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients">https://wiki.jenkins-ci.org/display/JENKINS/Authenticating+scripted+clients</a></p>
<p><a href="https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API">https://wiki.jenkins-ci.org/display/JENKINS/Remote+access+API</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/ways-to-login-jenkins-using-command-line/">What are the ways to Login Jenkins using Command line ?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/ways-to-login-jenkins-using-command-line/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Batch Script to Login and sync the files from perforce &#124; Step by step guide</title>
		<link>https://www.scmgalaxy.com/tutorials/batch-script-to-login-and-sync-the-files-from-perforce/</link>
					<comments>https://www.scmgalaxy.com/tutorials/batch-script-to-login-and-sync-the-files-from-perforce/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 12 Jan 2009 11:43:29 +0000</pubDate>
				<category><![CDATA[Batch Scripting]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Batch Command]]></category>
		<category><![CDATA[Batch File Login]]></category>
		<category><![CDATA[Batch Script]]></category>
		<category><![CDATA[Batch Script to Login Perforce server]]></category>
		<category><![CDATA[Command line]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Perforce server login by using command line]]></category>
		<category><![CDATA[Porcess]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ways]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2009/01/12/batch-script-to-login-and-sync-the-files-from-perforce/</guid>

					<description><![CDATA[<p>Batch Script to Login Perforce server using command line Step 1: Create a new text file Step2: Copy following command [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/batch-script-to-login-and-sync-the-files-from-perforce/">Batch Script to Login and sync the files from perforce | Step by step guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="size-full wp-image-3646 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/batch-script-to-login-and-s.png" alt="batch-script-to-login-and-sync-the-files-from-perforce" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/batch-script-to-login-and-s.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2009/01/batch-script-to-login-and-s-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong>Batch Script to Login Perforce server using command line</strong></p>
<p><strong>Step 1: </strong>Create a new text file<br />
<strong>Step2: </strong>Copy following command<br />
%path%<br />
@echo on<br />
p4 -p172.28.16.2:1666 -uUserName -P&#8221;Password&#8221; -c&#8221;Client_Name&#8221; client –o</p>
<p>Where<br />
UserName is User name of perforce server<br />
Password is Password of the perforce server.<br />
Client_Name is the existing perforce client</p>
<p><strong>Step3: </strong>Save with .bat extension</p>
<p><strong>Step4:</strong> Run the batch file</p>
<p><strong>Batch Script to Login and sync the files from perforce view</strong></p>
<p><strong>Step 1: </strong>Create a new text file<br />
<strong>Step2: </strong>Copy following command<br />
@echo off<br />
p4 -c Client_Name -p 172.28.16.2:1666 -u UserName-P Password sync -f //SEABU/LiveStateDelivery/LSDMaintenance/Components/Webadmin/&#8230; //SYSTEMBUILDSTAR/LiveStateDelivery/LSDMaintenance/Components/Webadmin/&#8230;</p>
<p>Where<br />
UserName is User name of perforce server<br />
Password is Password of the perforce server.<br />
Client_Name is the existing perforce client</p>
<p><strong>Step3:</strong> Save with .bat extension</p>
<p><strong>Step4:</strong> Run the batch file</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/batch-script-to-login-and-sync-the-files-from-perforce/">Batch Script to Login and sync the files from perforce | Step by step guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/batch-script-to-login-and-sync-the-files-from-perforce/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Batch Script to login to perforce and sync the source code to specific location</title>
		<link>https://www.scmgalaxy.com/tutorials/batch-script-to-login-to-perforce-and-sync-the-source-code-to-specific-location/</link>
					<comments>https://www.scmgalaxy.com/tutorials/batch-script-to-login-to-perforce-and-sync-the-source-code-to-specific-location/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 24 Nov 2008 07:46:52 +0000</pubDate>
				<category><![CDATA[Batch Scripting]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[Batch Script]]></category>
		<category><![CDATA[Batch Script Reference]]></category>
		<category><![CDATA[Batch Script Tutorial]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Location]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Particular]]></category>
		<category><![CDATA[Perforce]]></category>
		<category><![CDATA[Perforce login]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[Specific]]></category>
		<category><![CDATA[Specific location]]></category>
		<category><![CDATA[sync]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2008/11/24/batch-script-to-login-to-perforce-and-sync-the-source-code-to-specific-location/</guid>

					<description><![CDATA[<p>Batch Script to login to perforce and sync the source code to specific location @echo offcd /d &#8220;E:\Development\AnthillPro\work\perforce\SEABU\Module\Features1&#8221; &#8220;p4&#8221; -c [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/batch-script-to-login-to-perforce-and-sync-the-source-code-to-specific-location/">Batch Script to login to perforce and sync the source code to specific location</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3619 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2008/11/batch-script-to-login-to-pe.png" alt="batch-script-to-login-to-perforce-and-sync-the-source-code" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2008/11/batch-script-to-login-to-pe.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2008/11/batch-script-to-login-to-pe-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: 'Times New Roman';">Batch Script to login to perforce and sync the source code to specific location</span></span></span></strong></p>
<p><span style="font-size: medium;"><span style="font-family: 'Times New Roman';"><span style="color: #800000;">@echo off</span></span></span><span style="font-size: medium;"><span style="font-family: 'Times New Roman';"><span style="color: #800000;">cd /d &#8220;E:\Development\AnthillPro\work\perforce\SEABU\Module\Features1&#8221; </span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="color: #800000; font-family: 'Times New Roman'; font-size: medium;">&#8220;p4&#8221; -c SYSTEMBUILDSTAR -p 10.0.0.3:1666 -u UserName -P UserPass sync //SEABU/Module/Features1/&#8230; //SYSTEMBUILDSTAR/Module/Features1/&#8230;</span></p>
<p><span style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"> </span></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/batch-script-to-login-to-perforce-and-sync-the-source-code-to-specific-location/">Batch Script to login to perforce and sync the source code to specific location</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/batch-script-to-login-to-perforce-and-sync-the-source-code-to-specific-location/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Login Perforce Server by Using Batch File ?</title>
		<link>https://www.scmgalaxy.com/tutorials/perforce-server-login-batch-file/</link>
					<comments>https://www.scmgalaxy.com/tutorials/perforce-server-login-batch-file/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 24 Nov 2008 07:38:23 +0000</pubDate>
				<category><![CDATA[Perforce]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[Batch file]]></category>
		<category><![CDATA[Batch Script]]></category>
		<category><![CDATA[File]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[How to Login perforce server using local client]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[Login perforce server]]></category>
		<category><![CDATA[Perforce server]]></category>
		<category><![CDATA[Perforce server Guide]]></category>
		<category><![CDATA[Perforce Server Login]]></category>
		<category><![CDATA[Perforce server login through batch script]]></category>
		<category><![CDATA[Perforce server tutorial]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2008/11/24/perforce-server-login-batch-file/</guid>

					<description><![CDATA[<p>Login perforce server using local client through batch script @echo off p4 -p10.0.0.3:1666 –uUser_Name -P&#8221;User_Pass&#8221; -c&#8221;PERFORCE_CLIENT&#8221; client –o   Inputs:   [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce-server-login-batch-file/">How to Login Perforce Server by Using Batch File ?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="alignnone size-full wp-image-3624 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2008/11/perforce-server-login-batch.png" alt="perforce-server-login-batch-file" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2008/11/perforce-server-login-batch.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2008/11/perforce-server-login-batch-300x200.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></p>
<p><strong><span style="font-size: medium;"><span style="color: #000000;"><span style="font-family: verdana, geneva;">Login perforce server using local client through batch script</span></span></span></strong><span style="color: #000000; font-family: verdana, geneva; font-size: medium;"> </span><span style="font-size: medium;"><span style="color: #800000;"><span style="font-family: verdana, geneva;">@echo off</span></span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="color: #800000; font-family: verdana, geneva; font-size: medium;">p4 -p10.0.0.3:1666 –uUser_Name -P&#8221;User_Pass&#8221; -c&#8221;PERFORCE_CLIENT&#8221; client –o</span></p>
<p><span style="color: #000000; font-family: verdana, geneva; font-size: medium;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="color: #000000; font-family: verdana, geneva; font-size: medium;">Inputs: </span></p>
<p><span style="color: #000000; font-family: verdana, geneva; font-size: medium;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: medium;"><span style="color: #000000; font-family: verdana, geneva;">-p <span style="font-family: Wingdings;">à</span> Server Address</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: medium;"><span style="color: #000000; font-family: verdana, geneva;">-u <span style="font-family: Wingdings;">à</span> User Name</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: medium;"><span style="color: #000000; font-family: verdana, geneva;">-P <span style="font-family: Wingdings;">à</span> Password</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: medium;"><span style="color: #000000; font-family: verdana, geneva;">-c  <span style="font-family: Wingdings;">à</span> Client Name</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="color: #000000;"><span style="font-family: verdana, geneva;"><span style="font-size: 9pt; font-family: Courier;">-o </span><span style="font-size: 9pt; font-family: Wingdings;">à</span> <span style="font-size: 10pt; font-family: Palatino-Roman;">Write the client specification to standard output an editor.</span></span></span></p>
<p><span style="color: #000000; font-family: verdana, geneva; font-size: medium;"> </span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: medium;"><span style="color: #000000; font-family: verdana, geneva;">10.0.0.3:1666 <span style="font-family: Wingdings;">à</span> ServerIP:Port</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: medium;"><span style="color: #000000; font-family: verdana, geneva;">User_Name <span style="font-family: Wingdings;">à</span> User Name</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: medium;"><span style="color: #000000; font-family: verdana, geneva;">User_Pass <span style="font-family: Wingdings;">à</span> User Password</span></span></p>
<p class="MsoNormal" style="margin: 0in 0in 0pt;"><span style="font-size: medium;"><span style="color: #000000; font-family: verdana, geneva;">PERFORCE_CLIENT <span style="font-family: Wingdings;">à</span> Perforce Local Client</span></span></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/perforce-server-login-batch-file/">How to Login Perforce Server by Using Batch File ?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/perforce-server-login-batch-file/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
